lint & flaky e2e debugging message
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
3fcea3eeb6
commit
98d8acb82b
2 changed files with 5 additions and 5 deletions
|
@ -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\'']],
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue