mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-09-21 17:04:00 +00:00
15 lines
510 B
JavaScript
15 lines
510 B
JavaScript
"use strict";
|
|
const path = require("node:path");
|
|
const t = require("tap");
|
|
const { reportLuaTests } = require("../../test/lua/runner");
|
|
|
|
const envFile = path.join(__dirname, "module", "env.lua");
|
|
|
|
// Each file runs in its own lua state, and each test in a fresh environment
|
|
t.test("control.lua", t2 => {
|
|
for (const file of ["lookup.lua", "players.lua", "assignment.lua", "sync.lua", "holders.lua"]) {
|
|
t2.test(file, t3 => reportLuaTests(t3, envFile, path.join(__dirname, "module", file)));
|
|
}
|
|
t2.end();
|
|
});
|