chore: Upgrade sequelize dependency

This commit is contained in:
Tom Moor
2022-06-06 21:54:54 +02:00
parent 4bccb4c4ec
commit e5b524e4c2
6 changed files with 116 additions and 137 deletions

View File

@@ -379,17 +379,17 @@ describe("#findByPk", () => {
expect(response!.id).toBe(collection.id);
});
test("should return undefined when incorrect uuid type", async () => {
test("should return null when incorrect uuid type", async () => {
const collection = await buildCollection();
const response = await Collection.findByPk(collection.id + "-incorrect");
expect(response).toBe(undefined);
expect(response).toBe(null);
});
test("should return undefined when incorrect urlId length", async () => {
test("should return null when incorrect urlId length", async () => {
const collection = await buildCollection();
const id = `${slugify(collection.name)}-${collection.urlId}incorrect`;
const response = await Collection.findByPk(id);
expect(response).toBe(undefined);
expect(response).toBe(null);
});
test("should return null when no collection is found with uuid", async () => {