test: add vitest for unit tests (#50)
* feat: add vitest for unit tests * chore: address pull request feedback * test: add unit test code quality workflow
This commit is contained in:
1 parent
ca04bf692d
commit
ae12f0c9df
6 files changed
+1119
-87
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { objectKeys } from "../object";
|
||||
|
||||
describe("objectKeys should return all keys of an object", () => {
|
||||
it("should return all keys of an object", () => {
|
||||
const obj = { a: 1, b: 2, c: 3 };
|
||||
expect(objectKeys(obj)).toEqual(["a", "b", "c"]);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user