Skip to content

Commit 431ddb9

Browse files
filipesilvaAndrewKushnir
authored andcommitted
test(bazel): use cross-platform file read of golden file (angular#31266)
PR Close angular#31266
1 parent 7c2cd97 commit 431ddb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/bazel/test/ng_package/example_package.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function runPackageGoldTest(testPackage: TestPackage) {
9292
process.chdir(packagePath);
9393

9494
// Gold file content from source control. We expect that the output of the package matches this.
95-
const expected = fs.readFileSync(goldenFilePath, 'utf-8');
95+
const expected = readFileContents(goldenFilePath);
9696

9797
// Actual file content generated from the rule.
9898
const actual = getCurrentPackageContent();

0 commit comments

Comments
 (0)