(page, capabilities)
| 1 | import { test, expect } from './coverage-fixtures.js' |
| 2 | |
| 3 | function mockCapabilities(page, capabilities) { |
| 4 | return page.route('**/api/models/capabilities', (route) => { |
| 5 | route.fulfill({ |
| 6 | contentType: 'application/json', |
| 7 | body: JSON.stringify({ data: capabilities }), |
| 8 | }) |
| 9 | }) |
| 10 | } |
| 11 | |
| 12 | // Returns a (Promise, resolver) pair that records the multipart form fields |
| 13 | // the page submitted to /audio/transformations. The handler returns a tiny |
no test coverage detected