File: replace-ava-by-tape.patch

package info (click to toggle)
node-path-exists 5.0.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 164 kB
  • sloc: javascript: 39; makefile: 6
file content (23 lines) | stat: -rw-r--r-- 529 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
Description: switch test from ava to tape
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2022-04-01

--- a/test.js
+++ b/test.js
@@ -1,12 +1,14 @@
-import test from 'ava';
+import {default as test} from 'tape';
 import {pathExists, pathExistsSync} from './index.js';
 
 test('async', async t => {
 	t.true(await pathExists('test.js'));
 	t.false(await pathExists('fail'));
+	t.end();
 });
 
 test('sync', t => {
 	t.true(pathExistsSync('test.js'));
 	t.false(pathExistsSync('fail'));
+	t.end();
 });