Skip to content

Commit

Permalink
Make snapshots platform agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
lorefnon committed Oct 13, 2018
1 parent 2ef6b48 commit ab83683
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/__snapshots__/index.spec.ts.snap
Expand Up @@ -3,7 +3,7 @@
exports[`TemplateProcessor Complains about missing generators 1`] = `
Array [
Object {
"filePath": "<project-root>\\\\src\\\\erroneous-template-name.ts",
"filePath": "<project-root>/src/erroneous-template-name.ts",
"line": undefined,
"lineIndex": undefined,
"warnings": Array [
Expand All @@ -13,7 +13,7 @@ Array [
],
},
Object {
"filePath": "<project-root>\\\\src\\\\missing-generator.ts",
"filePath": "<project-root>/src/missing-generator.ts",
"line": undefined,
"lineIndex": undefined,
"warnings": Array [
Expand Down
4 changes: 3 additions & 1 deletion src/index.spec.ts
Expand Up @@ -56,7 +56,9 @@ describe("TemplateProcessor", () => {
Array.from(reporter.warnings.values()).map(warnings =>
warnings.map(warning => ({
...warning,
filePath: warning.filePath.replace(projDir!, "<project-root>")
filePath: warning.filePath
.replace(projDir!, "<project-root>")
.replace(/\\/g, "/")
}))
)
),
Expand Down

0 comments on commit ab83683

Please sign in to comment.