Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/app/arrays.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe('arrays', function() {
expect(result).to.eql(3);
});

it('you should be able to find duplicates in an array', function() {
it('you should be able to identify the duplicate elements in an array', function() {
var result = arraysAnswers.duplicates([ 1, 2, 4, 4, 3, 3, 1, 5, 3 ]);

expect(result.sort()).to.eql([1, 3, 4]);
Expand All @@ -104,7 +104,7 @@ describe('arrays', function() {
expect(result.join(' ')).to.eql('1 4 9 16');
});

it('you should be able to find all occurrences of an item in an array', function() {
it('you should be able to find the index of all occurrences of an item in an array', function() {
var result = arraysAnswers.findAllOccurrences([ 1, 2, 3, 4, 5, 6, 1, 7], 1);

expect(result.sort().join(' ')).to.eql('0 6');
Expand Down