Skip to content

Commit

Permalink
Rename function to avoid name conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
davepagurek committed Dec 2, 2023
1 parent cc1997c commit 5f89e23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/test/mocha-chrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = function(grunt) {
'base64'
);
});
await page.exposeFunction('writeFile', function(filename, data) {
await page.exposeFunction('writeTextFile', function(filename, data) {
fs.mkdirSync('test/' + path.dirname(filename), { recursive: true });
fs.writeFileSync(
'test/' + filename,
Expand Down
2 changes: 1 addition & 1 deletion test/unit/visual/visualTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ window.visualTest = function(
);
}
if (!expectedScreenshots) {
writeFile(
writeTextFile(
`unit/visual/screenshots/${name}/metadata.json`,
JSON.stringify({ numScreenshots: actual.length }, null, 2)
);
Expand Down

0 comments on commit 5f89e23

Please sign in to comment.