@lcap/asl
Version:
NetEase Application Specific Language
24 lines • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const env_1 = require("../../fixtures/env");
describe('MicroService', () => {
const entityName = `Student_` + env_1.dateHash();
const entityName2 = `Student_` + env_1.dateHash() + 2;
it('addEntity(name: string)', async () => {
const app = await env_1.getApp();
const entity = await app.firstMicroService.addEntity(entityName);
chai_1.expect(app.firstMicroService.data.entities).includes(entity);
});
it('addEntity(name: string)', async () => {
const app = await env_1.getApp();
const entity = await app.firstMicroService.addEntity(entityName);
chai_1.expect(app.firstMicroService.data.entities).includes(entity);
});
it('removeEntity(name: string)', async () => {
const app = await env_1.getApp();
const entity = await app.firstMicroService.removeEntity(entityName);
chai_1.expect(app.firstMicroService.data.entities).not.includes(entity);
});
});
//# sourceMappingURL=Service.spec.js.map