hotfix test front
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
6f3704c365
commit
05111c9268
|
@ -61,24 +61,6 @@ describe('Component vnTicketAdvance', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('stateColor()', () => {
|
|
||||||
it('should return success to the OK tickets', () => {
|
|
||||||
const ok = controller.stateColor(controller.$.model.data[0].state);
|
|
||||||
const notOk = controller.stateColor(controller.$.model.data[1].state);
|
|
||||||
|
|
||||||
expect(ok).toEqual('success');
|
|
||||||
expect(notOk).not.toEqual('success');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should return success to the FREE tickets', () => {
|
|
||||||
const notFree = controller.stateColor(controller.$.model.data[0].state);
|
|
||||||
const free = controller.stateColor(controller.$.model.data[1].state);
|
|
||||||
|
|
||||||
expect(free).toEqual('notice');
|
|
||||||
expect(notFree).not.toEqual('notice');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('dateRange()', () => {
|
describe('dateRange()', () => {
|
||||||
it('should return two dates with the hours at the start and end of the given date', () => {
|
it('should return two dates with the hours at the start and end of the given date', () => {
|
||||||
const now = Date.vnNew();
|
const now = Date.vnNew();
|
||||||
|
|
Loading…
Reference in New Issue