encoding - more tests

This commit is contained in:
Benjamin Pasero
2019-11-12 09:57:53 +01:00
parent 039899cde9
commit 2977cfea26
6 changed files with 61 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ function createCompile(src: string, build: boolean, emitError?: boolean) {
const input = es.through();
const output = input
.pipe(utf8Filter)
.pipe(bom())
.pipe(bom()) // this is required to preserve BOM in test files that loose it otherwise
.pipe(utf8Filter.restore)
.pipe(tsFilter)
.pipe(util.loadSourcemaps())