Skip to content

Commit 747bdba

Browse files
committed
uniquifyArray should return [] not null
1 parent 30e1c10 commit 747bdba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

starter-code/tests/FunctionsAndArraysSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ describe("Unique Arrays - uniquifyArray", function() {
135135
expect(typeof uniquifyArray).toBe("function");
136136
});
137137

138-
it("returns null with an empty array", function() {
139-
expect(uniquifyArray([])).toBe(null);
138+
it("returns [] with an empty array", function() {
139+
expect(uniquifyArray([])).toEqual([]);
140140
});
141141

142142
it("returns the correct array when having an array of the same element", function() {

0 commit comments

Comments
 (0)