📜  集成测试打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:20.696000             🧑  作者: Mango

代码示例2
it(`GIVEN vehicle id="${healthyVehicle.id}", WHEN getDamageState() is executed THEN the Promise will be resolved with false.`, async () => {
 
            const result = DamageService.getDamageState(healthyVehicle.id);
 
            await expect(result).to.be.eventually.false;
});