Skip to content

Commit 5e933ae

Browse files
remove testing checking for abort in subsequent init calls
1 parent 3c2e8f4 commit 5e933ae

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/integrationTests/basic.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -953,10 +953,6 @@ testCookieAndLocalStorage(() => {
953953
expect(xhrMock.send).toHaveBeenCalledTimes(1);
954954
expect(xhrMock.abort).toHaveBeenCalledTimes(1);
955955
});
956-
test('should prevent subsequent calls to init()', () => {
957-
uid2.abort();
958-
expect(() => uid2.init({ callback: () => {} })).toThrow();
959-
});
960956
});
961957

962958
describe('disconnect()', () => {
@@ -989,10 +985,6 @@ testCookieAndLocalStorage(() => {
989985
expect(xhrMock.send).toHaveBeenCalledTimes(1);
990986
expect(xhrMock.abort).toHaveBeenCalledTimes(1);
991987
});
992-
test('should prevent subsequent calls to init()', () => {
993-
uid2.disconnect();
994-
expect(() => uid2.init({ callback: () => {} })).toThrow();
995-
});
996988
test('should switch to unavailable state', () => {
997989
uid2.init({
998990
callback: callback,

0 commit comments

Comments
 (0)