(req: RequestInfo)
| 138 | } |
| 139 | |
| 140 | fetch(req: RequestInfo): Promise<Response> { |
| 141 | if (typeof req === 'string') { |
| 142 | return this.server.fetch(new MockRequest(normalizeUrl(req, this.scopeUrl))); |
| 143 | } else { |
| 144 | const mockReq = req.clone() as MockRequest; |
| 145 | mockReq.url = normalizeUrl(mockReq.url, this.scopeUrl); |
| 146 | return this.server.fetch(mockReq); |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | addEventListener( |
| 151 | type: string, |
nothing calls this directly
no test coverage detected