Skip to content

Commit

Permalink
test for unusual throws. should still error
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarr committed Jan 20, 2011
1 parent 4f53538 commit 28c0399
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/test-weird_throws.js
@@ -0,0 +1,21 @@
if (module == require.main) {
return require('../lib/async_testing').run(process.ARGV);
}

module.exports = {
'test throw null': function(test) {
throw null;
}
, 'test throw undefined': function(test) {
throw undefined;
}
, 'test throw boolean': function(test) {
throw false;
}
, 'test throw number': function(test) {
throw 0;
}
, 'test throw String': function(test) {
throw 'hello';
}
}

0 comments on commit 28c0399

Please sign in to comment.