Skip to content

Commit 10a8209

Browse files
committed
Want to test empty object
1 parent 96aa6b2 commit 10a8209

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/conditionsMeet.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test("sanity checkField", function() {
55
expect(() => conditionsMeet({}, 0)).toThrow();
66
});
77

8-
test("run predicate against array and contents", () => {
8+
test("run predicate against array and elements", () => {
99
let condition = {
1010
options: "empty",
1111
};
@@ -17,7 +17,7 @@ test("single line", () => {
1717
let condition = {
1818
firstName: "empty",
1919
};
20-
expect(conditionsMeet(condition, [])).toBeTruthy();
20+
expect(conditionsMeet(condition, {})).toBeTruthy();
2121
expect(conditionsMeet(condition, { firstName: "some" })).toBeFalsy();
2222
expect(conditionsMeet(condition, { firstName: "" })).toBeTruthy();
2323
expect(conditionsMeet(condition, { firstName: undefined })).toBeTruthy();

0 commit comments

Comments
 (0)