Skip to content

Commit

Permalink
closes jameslnewell#79 implement overrideMimeType as a noop
Browse files Browse the repository at this point in the history
  • Loading branch information
csimi committed Aug 24, 2020
1 parent f18e779 commit 9df39ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/xhr-mock/src/MockXMLHttpRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ export default class MockXMLHttpRequest extends MockXMLHttpRequestEventTarget
}

overrideMimeType(mime: string): void {
throw notImplementedError;
if (this.readyState >= MockXMLHttpRequest.LOADING) {
throw new MockError('xhr must not be LOADING or DONE.');
}
}

open(
Expand Down

0 comments on commit 9df39ea

Please sign in to comment.