From 7fe0dac11112dec6dc3bc94cef789d17ad7a9d51 Mon Sep 17 00:00:00 2001 From: bacebu4 Date: Mon, 20 Nov 2023 09:54:26 +0100 Subject: [PATCH] test: improve coverage --- tests/index.test.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/index.test.js b/tests/index.test.js index b88ea03..16dcdeb 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -82,7 +82,7 @@ test('single test', async () => { ], }, { - path: '/Users/bacebu4/dev/cobertura-test/src/foo.js', + path: '/Users/bacebu4/dev/cobertura-test/foo.js', totalLineCount: 13, totalBranchCount: 4, totalFunctionCount: 1, @@ -184,6 +184,8 @@ test('single test', async () => { .split('=') .at(1); + console.log(lines); + const expectedLines = [ '\n', '\n', @@ -237,8 +239,8 @@ test('single test', async () => { '\t\t\t\t\n' + '\t\t\t\n' + '\t\t\n' + - '\t\t\n' + - '\t\t\t\n' + + '\t\t\n' + + '\t\t\t\n' + '\t\t\t\t\n' + '\t\t\t\t\t\n' + '\t\t\t\t\t\t\n' + @@ -262,6 +264,8 @@ test('single test', async () => { '\t\t\t\t\t\n' + '\t\t\t\t\n' + '\t\t\t\n' + + '\t\t\n' + + '\t\t\n' + '\t\t\t\n' + '\t\t\t\t\n' + '\t\t\t\t\t\n' +