Debian Codegraph @

debian/patches/switch-test-from-ava-to-tape.diff

raw
1 Description: switch test from ava to tape
2 Author: Xavier Guimard <[email protected]>
3 Forwarded: not-needed
4 Last-Update: 2020-02-14
5
6 --- a/test.js
7 +++ b/test.js
8 @@ -1,14 +1,16 @@
9 -import fs from 'fs';
10 -import test from 'ava';
11 -import getStream from 'get-stream';
12 -import stripBomStream from '.';
13 +const fs = require('fs');
14 +const test = require('tape');
15 +const getStream = require('get-stream');
16 +const stripBomStream = require('.');
17
18 test('main', async t => {
19 const result = await getStream(fs.createReadStream('fixture').pipe(stripBomStream()));
20 t.is(result, 'Unicorn\n');
21 + t.end();
22 });
23
24 test('low `highWaterMark`', async t => {
25 const result = await getStream(fs.createReadStream('fixture', {highWaterMark: 1}).pipe(stripBomStream()));
26 t.is(result, 'Unicorn\n');
27 + t.end();
28 });