添加账号修改,后台管理
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user