mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 09:36:17 +08:00
feat(server): self-hosted worker (#10085)
This commit is contained in:
@@ -95,7 +95,7 @@ export class TestingApp extends ApplyType<INestApplication>() {
|
||||
}
|
||||
|
||||
request(
|
||||
method: 'get' | 'post' | 'put' | 'delete' | 'patch',
|
||||
method: 'options' | 'get' | 'post' | 'put' | 'delete' | 'patch',
|
||||
path: string
|
||||
): supertest.Test {
|
||||
return supertest(this.getHttpServer())
|
||||
@@ -106,6 +106,10 @@ export class TestingApp extends ApplyType<INestApplication>() {
|
||||
]);
|
||||
}
|
||||
|
||||
OPTIONS(path: string): supertest.Test {
|
||||
return this.request('options', path);
|
||||
}
|
||||
|
||||
GET(path: string): supertest.Test {
|
||||
return this.request('get', path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user