test(bazel): use cross-platform file read of golden file (#31266)

PR Close #31266
This commit is contained in:
Filipe Silva 2019-07-25 15:38:13 +01:00 committed by Andrew Kushnir
parent 7c2cd97e60
commit 431ddb9a45

View File

@ -92,7 +92,7 @@ function runPackageGoldTest(testPackage: TestPackage) {
process.chdir(packagePath);
// Gold file content from source control. We expect that the output of the package matches this.
const expected = fs.readFileSync(goldenFilePath, 'utf-8');
const expected = readFileContents(goldenFilePath);
// Actual file content generated from the rule.
const actual = getCurrentPackageContent();