Skip to content

Commit

Permalink
Merge pull request ritz078#7 from kanikasaini/newtry
Browse files Browse the repository at this point in the history
uniquue
  • Loading branch information
kanikasaini authored Mar 8, 2017
2 parents fe0f698 + a5f2a47 commit 1b91e93
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/modules/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@ test('getUnique() method', t => {
t.same(actual, expected);
});

test('getUnique() method', t => {
const actual2 = getUnique([ 'a', 'a']);
const expected2 = ['a'];
t.same(actual2, expected2);
});

test('getUnique() method', t => {
const actual3 = getUnique([]);
const expected3 = [];
t.same(actual3, expected3);
});
test('getUnique() method', t => {
const actual4 = getUnique(['ab', 'ab', 5, 4, 'aaaa', 'aa', 'aaa', 'aa', 'abab', 1, 4, 4, 1, 'abab']);
const expected4 = ['ab', 5, 4, 'aaaa', 'aa', 'aaa', 'abab', 1];
t.same(actual4, expected4);
});

test('deepExtend() method', t => {
const defaults = {
a: 1,
Expand Down

0 comments on commit 1b91e93

Please sign in to comment.