YYP0502 commited on
Commit
184b8d4
·
verified ·
1 Parent(s): f6ad705

Delete tests

Browse files
Files changed (1) hide show
  1. tests/session-settings.test.mjs +0 -24
tests/session-settings.test.mjs DELETED
@@ -1,24 +0,0 @@
1
- import { test } from "node:test";
2
- import assert from "node:assert/strict";
3
- import { effectiveSettings, switchSetting } from "../dist/session-settings.js";
4
-
5
- test("temporary overrides are validated, isolated and do not mutate defaults", () => {
6
- process.env.CODEX_MODEL = "default-model";
7
- process.env.CODEX_REASONING_EFFORT = "high";
8
- assert.deepEqual(effectiveSettings("a"), { model: "default-model", effort: "high" });
9
- assert.match(switchSetting("a", "/switch gpt-6-sol"), /gpt-6-sol/);
10
- const snapshot = effectiveSettings("a");
11
- for (const value of ["low", "medium", "high", "xhigh", "max", "ultra"]) {
12
- assert.match(switchSetting("a", `/effort ${value}`), new RegExp(value));
13
- assert.equal(effectiveSettings("a").effort, value);
14
- }
15
- assert.match(switchSetting("a", "/effort invalid"), /low/);
16
- assert.equal(effectiveSettings("a").effort, "ultra");
17
- assert.match(switchSetting("a", "/switch"), /switch/);
18
- switchSetting("a", "/switch next-model");
19
- assert.equal(snapshot.model, "gpt-6-sol");
20
- assert.deepEqual(effectiveSettings("b"), { model: "default-model", effort: "high" });
21
- assert.equal(process.env.CODEX_MODEL, "default-model");
22
- assert.equal(process.env.CODEX_REASONING_EFFORT, "high");
23
- assert.equal(switchSetting("a", "/reset"), undefined);
24
- });