Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgrain committed Dec 20, 2023
1 parent 31f5489 commit 5c28ca5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ test('specify languages and split-by-submodule creates submodule files next to o
const rootTs = readFileSync(join(fixture, 'docs/API.typescript.md'), 'utf-8');
const submoduleTs = readFileSync(join(fixture, 'docs/submod1.typescript.md'), 'utf-8');
expect(rootTs).toMatchSnapshot('API.typescript.md');
expect(rootTs).toContain('./submod1.typescript.md');
expect(rootTs).toContain('greetWithSalutation');
expect(submoduleTs).toMatchSnapshot('submod1.typescript.md');
expect(submoduleTs).toContain('goodbyeWithPhrase');
Expand All @@ -97,6 +98,7 @@ test('specify languages and split-by-submodule creates submodule files next to o
const rootPy = readFileSync(join(fixture, 'docs/API.python.md'), 'utf-8');
const submodulePy = readFileSync(join(fixture, 'docs/submod1.python.md'), 'utf-8');
expect(rootPy).toMatchSnapshot('API.python.md');
expect(rootPy).toContain('./submod1.python.md');
expect(rootPy).toContain('greet_with_salutation');
expect(submodulePy).toMatchSnapshot('submod1.python.md');
expect(submodulePy).toContain('goodbye_with_phrase');
Expand Down

0 comments on commit 5c28ca5

Please sign in to comment.