File: replace-ava-by-tape.diff

package info (click to toggle)
node-is-generator-fn 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 128 kB
  • sloc: javascript: 35; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 496 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: replace ava by tape
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2020-10-26

--- a/test.js
+++ b/test.js
@@ -1,5 +1,5 @@
-import test from 'ava';
-import isGeneratorFn from '.';
+const test = require('tape');
+const isGeneratorFn = require('.');
 
 test('main', t => {
 	t.true(isGeneratorFn(function * () {}));
@@ -10,4 +10,5 @@
 	t.false(isGeneratorFn(undefined));
 	t.false(isGeneratorFn(() => {}));
 	t.false(isGeneratorFn(''));
+    t.end();
 });