setup spec file to run in browser or node

This commit is contained in:
Geoff Doty 2018-06-06 08:03:18 -04:00
parent 6f3b2aca3b
commit 3fa74a2bf3
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
var test = test || require("../src/testit");
test.it({
"'like' should do truthy evaluation via ==": function() {
test.expects(1).to.be.like('1');
@ -17,7 +19,7 @@ test.it({
test.expects().to.pass();
}
},
"you should be albe to see if something 'exists'": function() {
"you should be able to see if something 'exists'": function() {
test.expects({}).to.exist();
},
"should be able to check types": function() {