Skip to content

Commit de104e3

Browse files
committed
feat(contains): more concise wording
1 parent 8829dde commit de104e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

14_contains/solution/contains-solution.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ describe("contains", () => {
4242
expect(contains(object, "e")).toBe(true);
4343
});
4444

45-
test("true if the provided array is a reference to an array that exists within the object", () => {
45+
test("true if the object contains the same object by reference", () => {
4646
expect(contains(object, meaningOfLifeArray)).toBe(true);
4747
});
4848

49-
test("false if the provided array has the same structure as an array within the object, however the reference is not the same", () => {
49+
test("false if no matching object reference", () => {
5050
expect(contains(object, [42])).toBe(false);
5151
});
5252

0 commit comments

Comments
 (0)