[Pkg-javascript-commits] [node-ansi-escapes] 04/05: change from ava to mocha as test runner

Paolo Greppi paolog-guest at moszumanska.debian.org
Mon Dec 19 11:42:26 UTC 2016


This is an automated email from the git hooks/post-receive script.

paolog-guest pushed a commit to branch master
in repository node-ansi-escapes.

commit 9b2365bd791c8838e0d05b8dc397fa4326e72494
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Mon Dec 19 10:58:36 2016 +0000

    change from ava to mocha as test runner
    
    (ava is not yet available as a Debian package)
---
 debian/patches/00-mocha.diff | 24 ++++++++++++++++++++++++
 debian/patches/series        |  1 +
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/00-mocha.diff b/debian/patches/00-mocha.diff
new file mode 100644
index 0000000..66c338b
--- /dev/null
+++ b/debian/patches/00-mocha.diff
@@ -0,0 +1,24 @@
+Description: Change from ava to mocha as test runner (ava is not yet
+ available as a Debian package).
+Forwarded: not-needed
+Author: Paolo Greppi <paolo.greppi at libpf.com>
+
+Index: node-ansi-escapes/test.js
+===================================================================
+--- node-ansi-escapes.orig/test.js
++++ node-ansi-escapes/test.js
+@@ -1,8 +1,8 @@
+-import test from 'ava';
+-import m from './';
++var assert = require('assert');
++var m = require('./');
+ 
+-test(t => {
+-	t.true(Object.keys(m).length > 0);
+-	t.is(typeof m.cursorTo, 'function');
+-	t.is(m.cursorTo(2, 2), '\u001b[3;3H');
++test('main', function() {
++	assert(Object.keys(m).length > 0);
++	assert.equal(typeof m.cursorTo, 'function');
++	assert.equal(m.cursorTo(2, 2), '\u001b[3;3H');
+ });
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c508ffd
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+00-mocha.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-ansi-escapes.git



More information about the Pkg-javascript-commits mailing list