xhr.onreadystatechange = () => {
      if (xhr.readyState === xhr.DONE) {
        expect(() => (xhr.responseType = 'json')).toThrow();
        expect(() => (xhr.responseType = 'arraybuffer')).toThrow();
        expect(() => (xhr.responseType = 'blob')).toThrow();