feat(worker): live box password apply route
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user