File: replace-ava-by-tape.diff

package info (click to toggle)
node-is-path-inside 3.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 144 kB
  • sloc: javascript: 285; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 726 bytes parent folder | download
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
Description: replace ava by tape
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2021-10-12

--- a/test.js
+++ b/test.js
@@ -1,6 +1,6 @@
-import path from 'path';
-import test from 'ava';
-import isPathInside from '.';
+const path = require('path');
+const test = require('tape');
+const isPathInside = require('.');
 
 test('main', t => {
 	t.true(isPathInside('a', '/'));
@@ -65,6 +65,7 @@
 	t.false(isPathInside('/a/bc/d', '/a/b'));
 	t.false(isPathInside('a/../b', 'a'));
 	t.false(isPathInside('a/../b', 'b'));
+	t.end();
 });
 
 test('win32', t => {
@@ -144,4 +145,5 @@
 	path.relative = relative;
 	path.resolve = resolve;
 	Object.defineProperty(path, 'sep', {value: sep});
+	t.end();
 });