Debian Codegraph @

test.js

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 import fs from 'fs';
2 import test from 'ava';
3 import getStream from 'get-stream';
4 import stripBomStream from '.';
5
6 test('main', async t => {
7 const result = await getStream(fs.createReadStream('fixture').pipe(stripBomStream()));
8 t.is(result, 'Unicorn\n');
9 });
10
11 test('low `highWaterMark`', async t => {
12 const result = await getStream(fs.createReadStream('fixture', {highWaterMark: 1}).pipe(stripBomStream()));
13 t.is(result, 'Unicorn\n');
14 });