mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
12 lines
351 B
TypeScript
12 lines
351 B
TypeScript
import { isVector } from ".";
|
|
|
|
describe("Vector", () => {
|
|
test("isVector", () => {
|
|
expect(isVector([5, 5])).toBe(true);
|
|
expect(isVector([-5, -5])).toBe(true);
|
|
expect(isVector([5, 0.5])).toBe(true);
|
|
expect(isVector(null)).toBe(false);
|
|
expect(isVector(undefined)).toBe(false);
|
|
expect(isVector([5, NaN])).toBe(false);
|
|
});
|
|
});
|