| 11 | |
| 12 | describe("ProtocolsService", () => { |
| 13 | @Protocol({ |
| 14 | name: "local", |
| 15 | useStrategy: Strategy as any, |
| 16 | settings: { |
| 17 | prop1: "prop1", |
| 18 | prop2: "prop2" |
| 19 | } |
| 20 | }) |
| 21 | class LocalProtocol { |
| 22 | $beforeInstall(settings: any) { |
| 23 | return Promise.resolve(settings); |
| 24 | } |
| 25 | |
| 26 | $onInstall() {} |
| 27 | |
| 28 | $onVerify(@Req() req: Req) { |
| 29 | return {id: 0}; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | beforeEach(() => |
| 34 | PlatformTest.create({ |
nothing calls this directly
no test coverage detected