[Pkg-javascript-devel] RFS: node-exit-hook 1.1.1
Paolo Greppi
paolo.greppi at libpf.com
Mon Dec 19 17:35:38 UTC 2016
Hi,
I have packaged node-exit-hook, see the ITP I am CC-ing and the repo:
https://anonscm.debian.org/git/pkg-javascript/node-exit-hook.git/
I tried patching the test suite to use mocha rather than ava:
diff --git a/test.js b/test.js
index e92fb06..546f7f3 100644
--- a/test.js
+++ b/test.js
@@ -1,16 +1,16 @@
'use strict';
-var test = require('ava');
+var assert = require('assert');
var exitHook = require('./');
-test(function (t) {
- t.plan(2);
-
+test('main', function () {
exitHook(function () {
- t.assert(true);
+ console.log('Paolo was here');
+ assert(true);
});
exitHook(function () {
- t.assert(true);
+ console.log('Paolo was here');
+ assert(true);
});
process.exit();
and I can see the hooks are executed (the debug prints appear) but the
test runner never sees the asserts. So I skipped this patch and the
build/autopkgtests,
Please someone more experienced than me review it and if it's OK sponsor
its upload.
Thanks,
Paolo
More information about the Pkg-javascript-devel
mailing list