mirror of https://github.com/n2geoff/testit.git
setup spec file to run in browser or node
This commit is contained in:
parent
6f3b2aca3b
commit
3fa74a2bf3
|
@ -1,3 +1,5 @@
|
||||||
|
var test = test || require("../src/testit");
|
||||||
|
|
||||||
test.it({
|
test.it({
|
||||||
"'like' should do truthy evaluation via ==": function() {
|
"'like' should do truthy evaluation via ==": function() {
|
||||||
test.expects(1).to.be.like('1');
|
test.expects(1).to.be.like('1');
|
||||||
|
@ -17,7 +19,7 @@ test.it({
|
||||||
test.expects().to.pass();
|
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();
|
test.expects({}).to.exist();
|
||||||
},
|
},
|
||||||
"should be able to check types": function() {
|
"should be able to check types": function() {
|
||||||
|
|
Loading…
Reference in New Issue