From 5c28ca57cd3833bcbe882362a9e5f969e4c01148 Mon Sep 17 00:00:00 2001 From: Momo Kornher Date: Wed, 20 Dec 2023 11:27:21 +0000 Subject: [PATCH] improve test --- test/cli.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/cli.test.ts b/test/cli.test.ts index b11ae36d..6c7ed469 100644 --- a/test/cli.test.ts +++ b/test/cli.test.ts @@ -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'); @@ -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');