From 3fa74a2bf3f5abaebdef1682c1c1765f12384311 Mon Sep 17 00:00:00 2001 From: Geoff Doty Date: Wed, 6 Jun 2018 08:03:18 -0400 Subject: [PATCH] setup spec file to run in browser or node --- test/index.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/index.spec.js b/test/index.spec.js index 758e015..27010c3 100644 --- a/test/index.spec.js +++ b/test/index.spec.js @@ -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() {