fix fetch-validate-ap-deny e2e test
our error messages are slightly different from upstream's
This commit is contained in:
parent
ae9daca4f2
commit
b4608aeb53
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ describe('validateContentTypeSetAsActivityPub/JsonLD (deny case)', () => {
|
|||
validateContentTypeSetAsActivityPub(res);
|
||||
}
|
||||
|
||||
expect(doValidate).toThrow('content type is not');
|
||||
expect(doValidate).toThrow(/content type .+ is not/);
|
||||
});
|
||||
|
||||
test('JSON-LD: ファイルはエラーになる', async () => {
|
||||
|
|
@ -35,6 +35,6 @@ describe('validateContentTypeSetAsActivityPub/JsonLD (deny case)', () => {
|
|||
validateContentTypeSetAsJsonLD(res);
|
||||
}
|
||||
|
||||
expect(doValidate).toThrow('content type is not');
|
||||
expect(doValidate).toThrow(/content type .+ is not/);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue