Skip to content

Commit

Permalink
test: add test cases for null and undefined arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjoehnk committed Mar 22, 2019
1 parent 4a84ab8 commit 0222841
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,14 @@ suite('Test', () => {
test('a basic test', () => {
assert.equal(true, true);
});

test
.case(null)
.run('null case', (arg) => {
assert.isNull(arg);
});

test.case(undefined).run('undefined case', arg => {
assert.isUndefined(arg);
});
});

0 comments on commit 0222841

Please sign in to comment.