Fix tests

This commit is contained in:
Adria Navarro 2023-09-27 16:22:00 +02:00
parent 9afa334501
commit fdb6474868
1 changed files with 4 additions and 4 deletions

View File

@ -139,20 +139,20 @@ describe("bbReferenceProcessor", () => {
expect(cacheGetUsersSpy).toBeCalledWith(userIds)
})
it("empty strings will return undefined", async () => {
it("empty strings will return null", async () => {
const result = await config.doInTenant(() =>
processInputBBReferences("", FieldSubtype.USER)
)
expect(result).toEqual(undefined)
expect(result).toEqual(null)
})
it("empty arrays will return undefined", async () => {
it("empty arrays will return null", async () => {
const result = await config.doInTenant(() =>
processInputBBReferences([], FieldSubtype.USER)
)
expect(result).toEqual(undefined)
expect(result).toEqual(null)
})
})
})