You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
461 B
18 lines
461 B
"use strict";
|
|
|
|
const fs = require( "fs" );
|
|
|
|
async function generateFixture() {
|
|
const fixture = await fs.promises.readFile( "./test/data/qunit-fixture.html", "utf8" );
|
|
await fs.promises.writeFile(
|
|
"./test/data/qunit-fixture.js",
|
|
"// Generated by build/tasks/qunit-fixture.js\n" +
|
|
"QUnit.config.fixture = " +
|
|
JSON.stringify( fixture.replace( /\r\n/g, "\n" ) ) +
|
|
";\n"
|
|
);
|
|
console.log( "Updated ./test/data/qunit-fixture.js" );
|
|
}
|
|
|
|
generateFixture();
|