feat(worker): live box password apply route

This commit is contained in:
Gabriel Brown
2026-07-13 10:07:06 -04:00
parent 58bd101793
commit 78aae034b5
2 changed files with 25 additions and 2 deletions
@@ -13,12 +13,13 @@ const load = async () => {
describe('boxRoute', () => {
afterEach(() => vi.resetModules());
test('matches the four box actions', async () => {
test('matches the five box actions', async () => {
const { boxRoute } = await load();
expect(boxRoute('/box/status')).toEqual({ action: 'status' });
expect(boxRoute('/box/lifecycle')).toEqual({ action: 'lifecycle' });
expect(boxRoute('/box/tree')).toEqual({ action: 'tree' });
expect(boxRoute('/box/file')).toEqual({ action: 'file' });
expect(boxRoute('/box/set-password')).toEqual({ action: 'set-password' });
});
test('rejects unknown, nested, and trailing paths', async () => {