File: replace-ava-by-tape.diff

package info (click to toggle)
node-cli-cursor 4.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 160 kB
  • sloc: javascript: 158; makefile: 4
file content (62 lines) | stat: -rw-r--r-- 1,323 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Description: replace ava by tape for test
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2022-08-29

--- a/test.js
+++ b/test.js
@@ -1,6 +1,6 @@
 import process from 'node:process';
 import childProcess from 'node:child_process';
-import test from 'ava';
+import test from 'tape';
 import cliCursor from './index.js';
 
 const {stderr: {write}} = process;
@@ -24,38 +24,46 @@
 
 test('show', t => {
 	t.is(getStderr(cliCursor.show), SHOW);
+	t.end();
 });
 
 test('hide', t => {
 	t.is(getStderr(cliCursor.hide), HIDE);
+	t.end();
 });
 
 test('toggle', t => {
 	cliCursor.hide();
 	t.is(getStderr(cliCursor.toggle), SHOW);
+	t.end();
 });
 
 test('toggle 2', t => {
 	cliCursor.show();
 	t.is(getStderr(cliCursor.toggle), HIDE);
+	t.end();
 });
 
 test('toggle force', t => {
 	cliCursor.show();
 	t.is(getStderr(cliCursor.toggle.bind(null, true)), SHOW);
+	t.end();
 });
 
 test('toggle force 2', t => {
 	cliCursor.hide();
 	t.is(getStderr(cliCursor.toggle.bind(null, true)), SHOW);
+	t.end();
 });
 
 test('toggle force 3', t => {
 	cliCursor.show();
 	t.is(getStderr(cliCursor.toggle.bind(null, false)), HIDE);
+	t.end();
 });
 
 // Used to fail, see sindresorhus/log-update#2
 test('require', t => {
 	t.is(childProcess.execSync('node index.js', {encoding: 'utf8'}), '');
+	t.end();
 });