Add basic test

This commit is contained in:
Adria Navarro 2023-11-20 11:53:13 +01:00
parent 25aef7b2c1
commit 9506e55e6b
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
import { enrichDatasources } from "../datasourceUtils"
describe("datasourceUtils", () => {
describe("enrichDatasources", () => {
it.each([
["undefined", undefined],
["undefined list", {}],
["empty list", { list: [] }],
])("%s datasources will return an empty list", datasources => {
const result = enrichDatasources(datasources)
expect(result).toEqual([])
})
})
})