File: replace-ava-by-tape.diff

package info (click to toggle)
node-array-find-index 1.0.2%2B~1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 140 kB
  • sloc: javascript: 29; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 442 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
Description: replace ava by tape
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2020-02-18

--- a/test.js
+++ b/test.js
@@ -1,5 +1,5 @@
 /* eslint-disable no-extend-native */
-import test from 'ava';
+const test = require('tape');
 
 Array.prototype.findIndex = undefined;
 const m = require('./');
@@ -9,4 +9,5 @@
 test(t => {
 	t.is(m(f, x => x === 30), 2);
 	t.is(m(f, x => x === 'noop'), -1);
+	t.end();
 });