From 431ddb9a455aff03af7de263e380a767974e9664 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Thu, 25 Jul 2019 15:38:13 +0100 Subject: [PATCH] test(bazel): use cross-platform file read of golden file (#31266) PR Close #31266 --- packages/bazel/test/ng_package/example_package.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bazel/test/ng_package/example_package.spec.ts b/packages/bazel/test/ng_package/example_package.spec.ts index 51e39fd816..dbc7aab251 100644 --- a/packages/bazel/test/ng_package/example_package.spec.ts +++ b/packages/bazel/test/ng_package/example_package.spec.ts @@ -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();