From 9e9fdfab5354e6fe3ea90ed4ac5be9d3ad5432dd Mon Sep 17 00:00:00 2001 From: Geoff Doty Date: Mon, 2 Apr 2018 04:29:54 -0400 Subject: [PATCH] move spec out of test runner to own file. shows custom runner ability --- test/index.spec.js | 25 +++++++++++++++++++++++++ test/runner.html | 41 ++++++++--------------------------------- 2 files changed, 33 insertions(+), 33 deletions(-) create mode 100644 test/index.spec.js diff --git a/test/index.spec.js b/test/index.spec.js new file mode 100644 index 0000000..0871018 --- /dev/null +++ b/test/index.spec.js @@ -0,0 +1,25 @@ +test.it({ + "'assert' should exist": function() { + test.exists(test.assert); + }, + "truty assert should work": function() { + test.assert(1, '1'); + test.assert('1', 1); + }, + "'equals' should exist": function() { + test.exists(test.equals); + }, + "'equals' should be exact": function() { + test.equals(1,1); + test.equals('hello', 'hello'); + }, + "'pass' should exist": function() { + test.exists(test.pass); + }, + "'fail' should exist": function() { + test.exists(test.fail); + }, + "'exists' should exist": function() { + test.exists(test.exists); + } +}); \ No newline at end of file diff --git a/test/runner.html b/test/runner.html index a6c883e..3319bc8 100644 --- a/test/runner.html +++ b/test/runner.html @@ -5,43 +5,18 @@ Test It Spec - + +