File: switch-test-from-ava-to-tape.diff

package info (click to toggle)
node-is-binary-path 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 124 kB
  • sloc: makefile: 2
file content (21 lines) | stat: -rw-r--r-- 507 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
Description: switch test from ava to test
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2019-09-25

--- a/test.js
+++ b/test.js
@@ -1,5 +1,5 @@
-import test from 'ava';
-import isBinaryPath from '.';
+const test =require('tape');
+const isBinaryPath =require('.');
 
 test('main', t => {
 	t.true(isBinaryPath('unicorn.png'));
@@ -7,4 +7,5 @@
 	t.true(isBinaryPath('unicorn.ZIP'));
 	t.false(isBinaryPath('unicornzip'));
 	t.false(isBinaryPath('unicorn.txt'));
+	t.end();
 });