From 606f3000f359329bb6c09d407d6b8394ae1b3baa Mon Sep 17 00:00:00 2001 From: nelsonic Date: Thu, 1 Nov 2018 08:47:43 +0000 Subject: [PATCH] update tests to new directory structure. still passing. #5 --- package.json | 2 - test/counter-reset-keyboard.js | 54 ++++++++++++++++++++ test/counter.js | 92 ++++++++++++++++++++++++++++++++++ test/elmish.test.js | 12 ++--- test/todo-app.test.js | 7 ++- 5 files changed, 154 insertions(+), 13 deletions(-) create mode 100644 test/counter-reset-keyboard.js create mode 100644 test/counter.js diff --git a/package.json b/package.json index 8e7ead1..9a0665c 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,6 @@ "jsdom-global": "^3.0.2", "live-server": "^1.2.0", "pre-commit": "^1.2.2", - "qunit-tap": "^1.5.1", - "qunitjs": "^2.3.2", "tap-spec": "^5.0.0", "tape": "^4.9.1" }, diff --git a/test/counter-reset-keyboard.js b/test/counter-reset-keyboard.js new file mode 100644 index 0000000..88fdc2f --- /dev/null +++ b/test/counter-reset-keyboard.js @@ -0,0 +1,54 @@ +// this file is borrowed from: +// https://github.com/dwyl/learn-elm-architecture-in-javascript/blob/master/examples/counter-reset-keyboard/counter.js +// it is included here purely for testing the "elmish" functions. + +/* if require is available, it means we are in Node.js Land i.e. testing! + in the broweser, the "elmish" DOM functions are loaded in a