From 03f6239c53c7132cf8ef08ff4f0cf70a1009de3f Mon Sep 17 00:00:00 2001 From: AndriiSherman Date: Fri, 22 Nov 2024 13:02:05 +0200 Subject: [PATCH] Fix tests --- integration-tests/tests/seeder/pg.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/integration-tests/tests/seeder/pg.test.ts b/integration-tests/tests/seeder/pg.test.ts index 33cd06f7e..3ca75704a 100644 --- a/integration-tests/tests/seeder/pg.test.ts +++ b/integration-tests/tests/seeder/pg.test.ts @@ -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) => ({ @@ -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 () => { @@ -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', + ); });