first commit

This commit is contained in:
2026-10-26 18:54:09 +08:00
commit 20a594d834
180 changed files with 18496 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
import { isArray } from "@@/utils/validate"
import { describe, expect, it } from "vitest"
describe("isArray", () => {
it("string", () => {
expect(isArray("")).toBe(false)
})
it("number", () => {
expect(isArray(1)).toBe(false)
})
it("boolean", () => {
expect(isArray(true)).toBe(false)
})
it("null", () => {
expect(isArray(null)).toBe(false)
})
it("undefined", () => {
expect(isArray(undefined)).toBe(false)
})
it("symbol", () => {
expect(isArray(Symbol())).toBe(false)
})
it("bigInt", () => {
expect(isArray(BigInt(1))).toBe(false)
})
it("object", () => {
expect(isArray({})).toBe(false)
})
it("array object", () => {
expect(isArray([])).toBe(true)
})
})