Centralizes all GM controls—add, update, delete player, set RP or renown, reset player passwords—into the PlayerTab for a more intuitive workflow. Removes GM panel logic and duplication from the shop view, clarifies GM access, and improves error feedback on player list loading. Adds a backend health check endpoint and minor UI polish.
12 lines
440 B
JavaScript
12 lines
440 B
JavaScript
const { spawnSync } = require('child_process');
|
|
const path = require('path');
|
|
|
|
describe('database healthcheck', () => {
|
|
it('should run healthcheck script and return players', () => {
|
|
const script = path.resolve(__dirname, '../database/healthcheck.js');
|
|
const res = spawnSync('node', [script], { encoding: 'utf8', cwd: path.resolve(__dirname, '..') });
|
|
console.log(res.stdout);
|
|
expect(res.status).toBe(0);
|
|
}, 20000);
|
|
});
|