This commit is contained in:
Ou
2024-09-29 20:57:24 +08:00
parent 51429cdd54
commit 0f8ec14ddf
36 changed files with 992 additions and 206 deletions
+11
View File
@@ -0,0 +1,11 @@
import { metadata } from "@shared/data"
import { describe, expect, it } from "vitest"
// 通过两次 diff 来找出数组的差异
describe("data", () => {
it.for(Object.entries(metadata))(` "%s" source list shoule be unique`, ([, { sourceList }]) => {
if (sourceList) {
expect(new Set(sourceList).size).toBe(sourceList.length)
}
})
})