[fix] webdiff should trigger failure
This commit is contained in:
@@ -35,10 +35,7 @@ export function webDiffWatcher(conf: Conf) {
|
|||||||
htmlDiff += `<span style="color: ${color};">${htmlStripped}</span>`
|
htmlDiff += `<span style="color: ${color};">${htmlStripped}</span>`
|
||||||
});
|
});
|
||||||
|
|
||||||
if (htmlDiff) {
|
throw 'Diff detected'
|
||||||
fs.writeFileSync(path.join(__dirname, 'diff.html'), htmlDiff, 'utf8')
|
|
||||||
}
|
|
||||||
console.log('Diff done')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user