We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc1997c commit 5f89e23Copy full SHA for 5f89e23
tasks/test/mocha-chrome.js
@@ -43,7 +43,7 @@ module.exports = function(grunt) {
43
'base64'
44
);
45
});
46
- await page.exposeFunction('writeFile', function(filename, data) {
+ await page.exposeFunction('writeTextFile', function(filename, data) {
47
fs.mkdirSync('test/' + path.dirname(filename), { recursive: true });
48
fs.writeFileSync(
49
'test/' + filename,
test/unit/visual/visualTest.js
@@ -157,7 +157,7 @@ window.visualTest = function(
157
158
}
159
if (!expectedScreenshots) {
160
- writeFile(
+ writeTextFile(
161
`unit/visual/screenshots/${name}/metadata.json`,
162
JSON.stringify({ numScreenshots: actual.length }, null, 2)
163
0 commit comments