Versions 175 to 318
Lines 31–44 at 318 (were 31–43 at 175)
3131
34− const asked: { url: string; method: string; auth: string | null }[] = [];
Lines 157–169 at 318 (were 156–166 at 175)
159− [["new", "acme-labs", "--name", "Acme Labs"], /Make acme-labs at https:\/\/example\.dev\/orgs\/new\./],
162162 await assert.rejects(runOrg(args(line), SERVER, { home, fetch: s.fetcher }), said, line.join(" "));
163− await assert.rejects(runOrg(args(line), SERVER, { home, fetch: s.fetcher }), /changed on the website for now/);
Lines 191–239 at 318 (were 188–198 at 175)
190193
191−describe("abso init --org", () => {
192− it("says the project is made on the website for now, with the org as its owner", () => {
195+ it("makes the org as the box's person, sending the box's sign-in and the shown name", async () => {
197+ const s = server({ "/box/orgs": { status: 200, body: { name: "acme-labs", displayName: "Acme Labs" } } });
198+ const out = await runOrg(args(["new", "acme-labs", "--name", "Acme Labs"]), SERVER, { home, fetch: s.fetcher });
206+ assert.deepEqual(JSON.parse(s.asked[0]?.body ?? "{}"), { name: "acme-labs", displayName: "Acme Labs" });
208+ it("says what the server says when the box's grant is a list, and never shows the credential", async () => {
211+ "/box/orgs": { status: 403, body: { error: "only a box approved for all your projects makes organizations" } },
216+ /refused \(403\): only a box approved for all your projects/.test(e.message) && !e.message.includes(CREDENTIAL),
226+ runOrg(args(["new", "acme-labs", "--leave"]), SERVER, { home: signedIn(), fetch: server({}).fetcher }),
231+
195− /made on the website for now: New project at https:\/\/example\.dev, with acme-labs as its owner/,
236+ /isn't signed in to https:\/\/api\.example\.dev.*abso init --org acme-labs again; or New project at https:\/\/example\.dev\./,
- MCP
- compare on this site's /mcp
- CLI
- abso diff 175 318 client/test/orgs.test.ts --json
- JSON
- /christopher/abso-core/compare/175..318?file=client%2Ftest%2Forgs.test.ts&format=json