Skip to content

Commit 5f89e23

Browse files
committed
Rename function to avoid name conflict
1 parent cc1997c commit 5f89e23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tasks/test/mocha-chrome.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = function(grunt) {
4343
'base64'
4444
);
4545
});
46-
await page.exposeFunction('writeFile', function(filename, data) {
46+
await page.exposeFunction('writeTextFile', function(filename, data) {
4747
fs.mkdirSync('test/' + path.dirname(filename), { recursive: true });
4848
fs.writeFileSync(
4949
'test/' + filename,

test/unit/visual/visualTest.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ window.visualTest = function(
157157
);
158158
}
159159
if (!expectedScreenshots) {
160-
writeFile(
160+
writeTextFile(
161161
`unit/visual/screenshots/${name}/metadata.json`,
162162
JSON.stringify({ numScreenshots: actual.length }, null, 2)
163163
);

0 commit comments

Comments
 (0)