refactor test to use toBeGreaterThan
This commit is contained in:
parent
40398da48d
commit
4c4e0e109d
|
@ -279,7 +279,7 @@ describe('ticket filter()', () => {
|
|||
}
|
||||
});
|
||||
|
||||
it('should return the tickets the invoice on false', async() => {
|
||||
it('should return the tickets with the invoice on false', async() => {
|
||||
const tx = await models.Ticket.beginTransaction({});
|
||||
|
||||
try {
|
||||
|
@ -298,7 +298,7 @@ describe('ticket filter()', () => {
|
|||
}
|
||||
});
|
||||
|
||||
it('should return the tickets the invoice on null', async() => {
|
||||
it('should return the tickets with the invoice on null', async() => {
|
||||
const tx = await models.Ticket.beginTransaction({});
|
||||
|
||||
try {
|
||||
|
@ -308,7 +308,7 @@ describe('ticket filter()', () => {
|
|||
const filter = {};
|
||||
const result = await models.Ticket.filter(ctx, filter, options);
|
||||
|
||||
expect(result.length).toEqual(27);
|
||||
expect(result.length).toBeGreaterThanOrEqual(27);
|
||||
|
||||
await tx.rollback();
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in New Issue