Skip to content

Commit

Permalink
tests improvement for all data types
Browse files Browse the repository at this point in the history
  • Loading branch information
kopylovvlad committed Feb 8, 2018
1 parent 856435f commit aaf9139
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions test.js
Expand Up @@ -9,7 +9,14 @@ test('is array (only polyfill)', function(t){
t.notOk(isArray({}));
t.notOk(isArray(null));
t.notOk(isArray(false));
t.notOk(isArray(""));
t.notOk(isArray(''));
t.notOk(isArray('42'));
t.notOk(isArray(42));
t.notOk(isArray(34.00));
t.notOk(isArray(123e-5));
t.notOk(isArray('[]'));
t.notOk(isArray(undefined));
t.notOk(isArray(function(){}));

var obj = {};
obj[0] = true;
Expand All @@ -28,7 +35,14 @@ test('is array (native)', function(t){
t.notOk(isArray({}));
t.notOk(isArray(null));
t.notOk(isArray(false));
t.notOk(isArray(""));
t.notOk(isArray(''));
t.notOk(isArray('42'));
t.notOk(isArray(42));
t.notOk(isArray(34.00));
t.notOk(isArray(123e-5));
t.notOk(isArray('[]'));
t.notOk(isArray(undefined));
t.notOk(isArray(function(){}));

var obj = {};
obj[0] = true;
Expand Down

0 comments on commit aaf9139

Please sign in to comment.