From 5e29203e3d4c45781bc482f8fb12780bd312b0f7 Mon Sep 17 00:00:00 2001 From: Karl-Philipp Wulfert Date: Tue, 14 May 2019 18:20:35 +0200 Subject: [PATCH] test: make sure to write report --- test/Schema.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Schema.spec.ts b/test/Schema.spec.ts index 2fb03daf..be690235 100644 --- a/test/Schema.spec.ts +++ b/test/Schema.spec.ts @@ -37,12 +37,12 @@ export class ValidateTestFiles { unexpected = unexpected || errorsPerFile[file].some((error) => !error.expected); }); - expect(unexpected).to.be.equal(false); - mkdirSync('report', { recursive: true, }); await writeReport(join('report', 'index.html'), errorsPerFile); + + expect(unexpected).to.be.equal(false); } }