Change double quotes to single
This commit is contained in:
parent
686b05350d
commit
0e2ddffc82
@ -1,8 +1,8 @@
|
|||||||
console.log("Jest config file read.");
|
console.log('Jest config file read.');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
globalSetup: "./test/integration/setup.cjs",
|
globalSetup: './test/integration/setup.cjs',
|
||||||
globalTeardown: "./test/integration/teardown.cjs",
|
globalTeardown: './test/integration/teardown.cjs',
|
||||||
testPathIgnorePatterns: ["/node_modules/", "test/unit"],
|
testPathIgnorePatterns: ['/node_modules/', 'test/unit'],
|
||||||
testTimeout: 5000
|
testTimeout: 5000
|
||||||
};
|
};
|
||||||
|
@ -3,7 +3,7 @@ import * as gameboard from './modules/gameboard.js';
|
|||||||
import * as recordSheet from './modules/record_sheet.js';
|
import * as recordSheet from './modules/record_sheet.js';
|
||||||
import * as mapSelectDialog from './modules/map_select_dialog.js';
|
import * as mapSelectDialog from './modules/map_select_dialog.js';
|
||||||
|
|
||||||
globalThis.svgns = "http://www.w3.org/2000/svg";
|
globalThis.svgns = 'http://www.w3.org/2000/svg';
|
||||||
|
|
||||||
const mapPlaceholder = document.querySelector('.map-placeholder'),
|
const mapPlaceholder = document.querySelector('.map-placeholder'),
|
||||||
distanceOutput = document.getElementById('status'),
|
distanceOutput = document.getElementById('status'),
|
||||||
|
@ -11,7 +11,7 @@ let driver;
|
|||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
driver = new Builder().forBrowser('chrome').setChromeOptions(chromeOptions).build();
|
driver = new Builder().forBrowser('chrome').setChromeOptions(chromeOptions).build();
|
||||||
await driver.get("http://localhost:3005");
|
await driver.get('http://localhost:3005');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('loads the page', async () => {
|
it('loads the page', async () => {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
console.log("\nSpawning server process...");
|
console.log('\nSpawning server process...');
|
||||||
const { spawn } = require("child_process");
|
const { spawn } = require('child_process');
|
||||||
|
|
||||||
module.exports = async function () {
|
module.exports = async function () {
|
||||||
const child = spawn("node", ["server.cjs"]);
|
const child = spawn('node', ['server.cjs']);
|
||||||
|
|
||||||
child.stdout.on('data', (data) => {
|
child.stdout.on('data', (data) => {
|
||||||
console.log(`${data}`);
|
console.log(`${data}`);
|
||||||
@ -10,10 +10,10 @@ module.exports = async function () {
|
|||||||
|
|
||||||
globalThis.__INTEG_TEST_SERVER_PID__ = child.pid;
|
globalThis.__INTEG_TEST_SERVER_PID__ = child.pid;
|
||||||
|
|
||||||
child.stderr.on("data", (data) => {
|
child.stderr.on('data', (data) => {
|
||||||
const str = data.toString();
|
const str = data.toString();
|
||||||
console.log("[server]", str);
|
console.log('[server]', str);
|
||||||
if (str.includes("localhost:3005")) {
|
if (str.includes('localhost:3005')) {
|
||||||
setTimeout(resolve, 200);
|
setTimeout(resolve, 200);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user