添加账号修改,后台管理

This commit is contained in:
yoyuzh
2026-03-19 17:52:58 +08:00
parent c39fde6b19
commit ff8d47f44f
60 changed files with 4264 additions and 58 deletions

View File

@@ -4,6 +4,8 @@ import test from 'node:test';
import {
buildObjectKey,
createAuthorizationHeader,
getFrontendSpaAliasContentType,
getFrontendSpaAliasKeys,
getCacheControl,
getContentType,
normalizeEndpoint,
@@ -31,6 +33,15 @@ test('getContentType resolves common frontend asset types', () => {
assert.equal(getContentType('favicon.png'), 'image/png');
});
test('frontend spa aliases are uploaded as html entry points', () => {
const aliases = getFrontendSpaAliasKeys();
assert.ok(aliases.includes('overview'));
assert.ok(aliases.includes('admin/users'));
assert.ok(aliases.includes('admin/schoolSnapshots/index.html'));
assert.equal(getFrontendSpaAliasContentType(), 'text/html; charset=utf-8');
});
test('createAuthorizationHeader is stable for a known request', () => {
const header = createAuthorizationHeader({
method: 'PUT',