Skip to content

Commit

Permalink
add --input test
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Jan 21, 2024
1 parent 50b8b12 commit 698e1c8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/unit/bin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function fixturePath(filePath) {
return resolve(__dirname, './fixtures', filePath);
}

describe.only('bin/marked', () => {
describe('bin/marked', () => {
describe('string', () => {
it('-s', testInput({
args: ['-s', '# test'],
Expand Down Expand Up @@ -98,11 +98,17 @@ describe.only('bin/marked', () => {
}));
});

describe.only('input', () => {
it.only('input file not found', testInput({
describe('input', () => {
it('input file not found', testInput({
args: [fixturePath('does-not-exist.md')],
stderr: `Cannot load input file '${fixturePath('does-not-exist.md')}'`,
code: 1
}));

it('input file not found --input', testInput({
args: ['--input', fixturePath('does-not-exist.md')],
stderr: `Cannot load input file '${fixturePath('does-not-exist.md')}'`,
code: 1
}));
});
});

0 comments on commit 698e1c8

Please sign in to comment.