BUGFIX: Darknet state is not reset properly on prestige (#2486)

This commit is contained in:
catloversg
2026-02-11 00:39:31 +07:00
committed by GitHub
parent ed727d6e74
commit 95b739f703
5 changed files with 36 additions and 10 deletions

View File

@@ -1298,6 +1298,12 @@ describe("lab location methods", () => {
});
test("dnet.labradar()", async () => {
const ns = getNsOnServerNearLabyrinth();
// Make sure we are at the starting point.
const locationStatus = (await ns.dnet.labreport()) as LocationStatus;
expect(isLocationStatus(locationStatus)).toBe(true);
expect(locationStatus.coords).toStrictEqual([1, 1]);
const response = (await ns.dnet.labradar()) as Result;
assertNonNullish(response.message);
const surroundingsString = response.message.split("\n");