Normalize UUID in ConversationModel.initialize

This commit is contained in:
Fedor Indutny 2022-02-02 13:41:29 -08:00 committed by GitHub
parent f03cf1ba0e
commit fdbb2bfb36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 6 deletions

View file

@ -15,8 +15,9 @@ describe('normalizeUuid', () => {
it("throws if passed a string that's not a UUID", () => {
assert.throws(
() => normalizeUuid('not-uuid-at-all', 'context 3'),
'Normalizing invalid uuid: not-uuid-at-all in context "context 3"'
() => normalizeUuid('not-UUID-at-all', 'context 3'),
'Normalizing invalid uuid: not-UUID-at-all to not-uuid-at-all in ' +
'context "context 3"'
);
});
});