From 85a0fd7d32d66d39c5e8e8d7d05308d0dbb2e8a2 Mon Sep 17 00:00:00 2001 From: cgeek Date: Sat, 31 Aug 2019 17:58:32 +0200 Subject: [PATCH] [fix] webdiff should trigger failure --- src/lib/watchers/webdiff/webdiff-watcher.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/watchers/webdiff/webdiff-watcher.ts b/src/lib/watchers/webdiff/webdiff-watcher.ts index 32baae1..4e42c3a 100644 --- a/src/lib/watchers/webdiff/webdiff-watcher.ts +++ b/src/lib/watchers/webdiff/webdiff-watcher.ts @@ -35,10 +35,7 @@ export function webDiffWatcher(conf: Conf) { htmlDiff += `${htmlStripped}` }); - if (htmlDiff) { - fs.writeFileSync(path.join(__dirname, 'diff.html'), htmlDiff, 'utf8') - } - console.log('Diff done') + throw 'Diff detected' } }