Skip to content

Commit

Permalink
100% test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Apr 28, 2024
1 parent f79e058 commit e15c9f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/transform/generator-final.js
Expand Up @@ -17,8 +17,8 @@ test('Generators "final" can be used, sync', testGeneratorFinal, 'noop.js', exec
test('Generators "final" is used even on empty streams, sync', testGeneratorFinal, 'empty.js', execaSync);

const testFinalAlone = async (t, final, execaMethod) => {
const {stdout} = await execaMethod('noop-fd.js', ['1', '.'], {stdout: {final: final(foobarString)().transform, binary: true}});
t.is(stdout, `.${foobarString}`);
const {stdout} = await execaMethod('noop-fd.js', ['1', '.'], {stdout: {final: final(foobarString)().transform}});
t.is(stdout, `.\n${foobarString}`);
};

test('Generators "final" can be used without "transform"', testFinalAlone, getOutputGenerator, execa);
Expand Down

0 comments on commit e15c9f9

Please sign in to comment.