We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42ea7fc commit af06fdcCopy full SHA for af06fdc
packages/storage/test/browser/connection.test.ts
@@ -8,10 +8,10 @@ describe('Connections', () => {
8
const fakeXHR = useFakeXMLHttpRequest();
9
const connection = new XhrConnection();
10
const sendPromise = connection.send('testurl', 'GET');
11
- // simulate an network error
+ // simulate a network error
12
((connection as any).xhr_ as SinonFakeXMLHttpRequest).error();
13
await sendPromise;
14
expect(connection.getErrorCode()).to.equal(ErrorCode.NETWORK_ERROR);
15
fakeXHR.restore();
16
});
17
-});
+});
0 commit comments