diff --git a/examples/simple.js b/examples/simple.js deleted file mode 100644 index e69de29..0000000 diff --git a/package.json b/package.json index d1abe5d..3ca6ef2 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,6 @@ "dependencies": {}, "devDependencies": { "tape": "~2.14.0", - "browserify-server": "~2.1.18", - "browservefy": "~0.0.10", - "testem": "~0.6.8", "covert": "~1.0.0" }, "licenses": [ @@ -36,9 +33,6 @@ ], "scripts": { "test": "node test/index.js", - "build": "browserify-server --bundle=test/index.js -o test/static/bundle.js --debug", - "testem": "testem", - "example": "browservefy ./examples/simple.js --browserify='browserify-server' --live -- --debug --bundle", "coverage": "covert test/index.js", "coverage-quiet": "covert test/index.js --quiet" }, diff --git a/test/static/index.html b/test/static/index.html deleted file mode 100644 index 60f6ef8..0000000 --- a/test/static/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - TAPE Example - - - - - - - diff --git a/test/static/test-adapter.js b/test/static/test-adapter.js deleted file mode 100644 index c512792..0000000 --- a/test/static/test-adapter.js +++ /dev/null @@ -1,49 +0,0 @@ -(function () { - var Testem = window.Testem - var regex = /^((?:not )?ok) (\d+) (.+)$/ - - Testem.useCustomAdapter(tapAdapter) - - function tapAdapter(socket){ - var results = { - failed: 0 - , passed: 0 - , total: 0 - , tests: [] - } - - socket.emit('tests-start') - - Testem.handleConsoleMessage = function(msg){ - var m = msg.match(regex) - if (m) { - var passed = m[1] === 'ok' - var test = { - passed: passed ? 1 : 0, - failed: passed ? 0 : 1, - total: 1, - id: m[2], - name: m[3], - items: [] - } - - if (passed) { - results.passed++ - } else { - results.failed++ - } - - results.total++ - - socket.emit('test-result', test) - results.tests.push(test) - } else if (msg === '# ok' || msg.match(/^# tests \d+/)){ - socket.emit('all-test-results', results) - } - - // return false if you want to prevent the console message from - // going to the console - // return false - } - } -}())