build: add jest, tests
This commit is contained in:
9
tests/removeObjectProperty.test.ts
Normal file
9
tests/removeObjectProperty.test.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { expect, test } from "@jest/globals";
|
||||
import { removeObjectProperty } from "../src";
|
||||
|
||||
test("remove object property by provided key", () => {
|
||||
expect(removeObjectProperty({ a: "1", b: "2", c: "3" }, "c")).toMatchObject({
|
||||
a: "1",
|
||||
b: "2",
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user