(zmodel: string)
| 60 | } |
| 61 | |
| 62 | async function createPolicyApp(zmodel: string) { |
| 63 | const client = await createTestClient(zmodel); |
| 64 | const authDb = client.$use(new PolicyPlugin()); |
| 65 | return { |
| 66 | client, |
| 67 | app: createProxyApp(client, client.$schema, authDb, { |
| 68 | studioAuthKey: TEST_PUBLIC_KEY, |
| 69 | signatureToleranceSecs: 60, |
| 70 | }), |
| 71 | }; |
| 72 | } |
| 73 | |
| 74 | // ─── Test suite ─────────────────────────────────────────────────────────────── |
| 75 |
no test coverage detected