Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
xuexb committed Jan 17, 2016
1 parent 9073e3d commit 1be41a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ describe('key-cache', function () {
}
});

it('new KeyCache(null)', function () {
it('new KeyCache() check option', function () {
var flag = true;

try {
new KeyCache({});
new KeyCache();
new KeyCache(false);
new KeyCache('');
new KeyCache(null);
new KeyCache(0);
Expand Down

0 comments on commit 1be41a4

Please sign in to comment.