Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiSherman committed Nov 22, 2024
1 parent 8f01683 commit 03f6239
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions integration-tests/tests/seeder/pg.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ test('valuesFromArray unique generator test', async () => {
},
},
})),
).rejects.toThrow('there are no enough values to fill unique column.');
).rejects.toThrow('There are no enough values to fill unique column.');

await expect(
seed(db, { valuesFromArrayUniqueTable: schema.valuesFromArrayUniqueTable }, { seed: 1 }).refine((funcs) => ({
Expand All @@ -955,7 +955,7 @@ test('valuesFromArray unique generator test', async () => {
},
},
})),
).rejects.toThrow('there are no enough values to fill unique column.');
).rejects.toThrow('There are no enough values to fill unique column.');
});

test('intPrimaryKey generator test', async () => {
Expand Down Expand Up @@ -1771,5 +1771,7 @@ test('weightedRandom with unique gens generator test', async () => {
},
},
})),
).rejects.toThrow("sum of all weights don't equal to 1; 1.1 !== 1");
).rejects.toThrow(
'The weights for the Weighted Random feature must add up to exactly 1. Please review your weights to ensure they total 1 before proceeding',
);
});

0 comments on commit 03f6239

Please sign in to comment.