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)
  })
})