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

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to