Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /