File: replace-ava-by-tape.patch

package info (click to toggle)
node-md5-hex 4.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 152 kB
  • sloc: javascript: 44; makefile: 5
file content (25 lines) | stat: -rw-r--r-- 783 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
24
25
Description: replace ava by tape
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2022-02-21

--- a/test.js
+++ b/test.js
@@ -1,14 +1,10 @@
-import test from 'ava';
-import md5Hex from './index.js';
-import md5HexBrowser from './browser.js';
+const test = require('tape');
+const md5Hex = require('./');
 
 test('main', t => {
 	t.is(md5Hex('unicorn'), '1abcb33beeb811dca15f0ac3e47b88d9');
 	t.is(md5Hex(Buffer.from('unicorn')), '1abcb33beeb811dca15f0ac3e47b88d9');
 	t.is(md5Hex(['uni', 'corn']), '1abcb33beeb811dca15f0ac3e47b88d9');
 	t.is(md5Hex(['uni', Buffer.from('corn')]), '1abcb33beeb811dca15f0ac3e47b88d9');
-});
-
-test('ensure the Node.js and browser version match', t => {
-	t.is(md5Hex('中文chinese'), md5HexBrowser('中文chinese'));
+	t.end();
 });