mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
79a19b412c
Ref gh-5441
18 lines
457 B
JavaScript
18 lines
457 B
JavaScript
"use strict";
|
|
|
|
const fs = require( "node:fs/promises" );
|
|
|
|
async function generateFixture() {
|
|
const fixture = await fs.readFile( "./test/data/qunit-fixture.html", "utf8" );
|
|
await fs.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();
|