From 4a3162a2a76c9dd8213ff67d602612111cfe4133 Mon Sep 17 00:00:00 2001 From: MisanthropicBit Date: Tue, 6 Feb 2024 10:12:32 +0100 Subject: [PATCH] Fix test for empty reporter option --- src/mocha-multi-reporter.ts | 1 + tests/mocha-multi-reporter.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mocha-multi-reporter.ts b/src/mocha-multi-reporter.ts index a160b59..2c9846e 100644 --- a/src/mocha-multi-reporter.ts +++ b/src/mocha-multi-reporter.ts @@ -35,6 +35,7 @@ function parseReporterOptions(options: mocha.RunnerOptions): Record { expect(stderr, 'to equal', '') }) - it.skip('reports empty option for reporter', async () => { + it('reports empty option for reporter', async () => { const command = [ 'mocha', '--reporter', @@ -60,7 +60,7 @@ describe('mocha-multi-reporter', () => { expect(stdout, 'to contain', '"fullTitle"') expect(stdout, 'to contain', '1 passing') - expect(stderr, 'to equal', 'Empty option for reporter') + expect(stderr, 'to equal', 'Empty option for reporter\n') }) it('reports unparsed reporter option', async () => {