(sandbox)
| 118 | } |
| 119 | |
| 120 | function buildLog(sandbox) { |
| 121 | return { |
| 122 | addDefaultFields: sandbox.stub(), |
| 123 | trace: sandbox.stub(), |
| 124 | debug: sandbox.stub(), |
| 125 | info: sandbox.stub(), |
| 126 | warn: sandbox.stub(), |
| 127 | error: sandbox.stub(), |
| 128 | fatal: sandbox.stub(), |
| 129 | end() { return this; }, |
| 130 | }; |
| 131 | } |
| 132 | |
| 133 | describe('CORS headers on 403 auth failures (api.callApiMethod)', () => { |
| 134 | let sandbox; |