refactor test to use toBeGreaterThan

This commit is contained in:
Pau 2022-11-23 08:25:15 +01:00
parent 40398da48d
commit 4c4e0e109d
1 changed files with 3 additions and 3 deletions

View File

@ -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) {