Files
pig/apps/api/test/growth.test.ts
T
karti 1318c0b841
CI / verify (push) Successful in 3m51s
Ship growth intelligence and demo polish
2026-08-13 04:44:14 -07:00

13 lines
511 B
TypeScript

import assert from 'node:assert/strict';
import { describe, it } from 'node:test';
import { growthReadAllowed } from '../src/routes/growth';
describe('growth read boundary', () => {
it('requires an explicit read scope instead of treating authentication as authorization', () => {
assert.equal(growthReadAllowed([]), false);
assert.equal(growthReadAllowed(['write']), false);
assert.equal(growthReadAllowed(['read']), true);
assert.equal(growthReadAllowed(['read', 'write']), true);
});
});