Skip to content

Commit 03f6239

Browse files
committed
Fix tests
1 parent 8f01683 commit 03f6239

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

integration-tests/tests/seeder/pg.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ test('valuesFromArray unique generator test', async () => {
934934
},
935935
},
936936
})),
937-
).rejects.toThrow('there are no enough values to fill unique column.');
937+
).rejects.toThrow('There are no enough values to fill unique column.');
938938

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

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

0 commit comments

Comments
 (0)