(port, opts = {})
| 37 | } |
| 38 | |
| 39 | function makeServer(port, opts = {}) { |
| 40 | const store = new MailboxStore(tmpDataDir()); |
| 41 | const routes = buildRoutes(store, { |
| 42 | assetFetch: async () => ({ assets: [] }), |
| 43 | assetSearch: async () => ({ results: [] }), |
| 44 | assetValidate: async () => ({ valid: true }), |
| 45 | }, null, {}); |
| 46 | const server = new ProxyHttpServer(routes, { |
| 47 | port, |
| 48 | logger: { log: () => {}, error: () => {}, warn: () => {} }, |
| 49 | clientSettings: opts.clientSettings, |
| 50 | }); |
| 51 | return { server, store }; |
| 52 | } |
| 53 | |
| 54 | describe('ProxyHttpServer token reuse', () => { |
| 55 | let savedSettingsDir; |
no test coverage detected