Add vendor creation
Signed-off-by: Bryan Frimin <bryan@getprobo.com> Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
committed by
Sacha Al Himdani
parent
fe3128da2a
commit
c2a69b5428
12
packages/helpers/src/array.test.ts
Normal file
12
packages/helpers/src/array.test.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { isEmpty } from "./array";
|
||||
|
||||
describe("array", () => {
|
||||
it("should check if an array is empty", () => {
|
||||
expect(isEmpty([])).toBe(true);
|
||||
expect(isEmpty([1, 2, 3])).toBe(false);
|
||||
expect(isEmpty(null)).toBe(true);
|
||||
expect(isEmpty(undefined)).toBe(true);
|
||||
expect(isEmpty([[], false])).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user