mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 00:56:26 +08:00
feat(server): enable share og information for docs (#7794)
This commit is contained in:
@@ -52,7 +52,7 @@ class TestResolver {
|
||||
}
|
||||
|
||||
@Public()
|
||||
@Controller()
|
||||
@Controller('/')
|
||||
class TestController {
|
||||
@Get('/ok')
|
||||
ok() {
|
||||
@@ -154,6 +154,7 @@ test('should be able to handle known user error in http request', async t => {
|
||||
const res = await request(t.context.app.getHttpServer())
|
||||
.get('/throw-known-error')
|
||||
.expect(HttpStatus.FORBIDDEN);
|
||||
|
||||
t.is(res.body.message, 'You do not have permission to access this resource.');
|
||||
t.is(res.body.name, 'ACCESS_DENIED');
|
||||
t.true(t.context.logger.error.notCalled);
|
||||
|
||||
Reference in New Issue
Block a user