lint & flaky e2e debugging message

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
ゆめ 2024-11-11 20:12:44 -06:00
parent 3fcea3eeb6
commit 98d8acb82b
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions
packages/backend
src/server
test/e2e

View file

@ -24,9 +24,9 @@ export function generateCSP(hashedMap: Map<string, CSPHashed>, options: {
return ([
['default-src', ['\'self\'']],
['img-src',
[
'\'self\'',
['img-src',
[
'\'self\'',
'data:',
// 'https://avatars.githubusercontent.com', // uncomment this for contributor avatars to work
options.mediaProxy
@ -41,7 +41,7 @@ export function generateCSP(hashedMap: Map<string, CSPHashed>, options: {
// Since you can not write CSS selectors or cascading rules in the inline style attributes.
//
// ref: https://github.com/shikijs/shiki/issues/671
['style-src-attr', ['\'self\'', '\'unsafe-inline\'']],
['style-src-attr', ['\'self\'', '\'unsafe-inline\'']],
['script-src', ['\'self\'', '\'wasm-unsafe-eval\'', ...scripts]],
['object-src', ['\'none\'']],
['frame-src', ['\'none\'']],

View file

@ -197,7 +197,7 @@ describe('OAuth', () => {
code_challenge,
code_challenge_method: 'S256',
} as AuthorizationParamsExtended));
assert.strictEqual(response.status, 200);
assert.strictEqual(response.status, 200, `response is ${response.status} ${response.statusText} - ${await response.text()}`);
const meta = getMeta(await response.text());
assert.strictEqual(typeof meta.transactionId, 'string');