UNPKG

@thoughtspot/visual-embed-sdk

Version:
18 lines 975 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const authToken = tslib_1.__importStar(require("../authToken")); const resetServices_1 = require("./resetServices"); const sessionInfoService = tslib_1.__importStar(require("./sessionInfoService")); describe('resetAllServices', () => { it('should reset all services', () => { const resetCachedAuthTokenSpy = jest.spyOn(authToken, 'resetCachedAuthToken'); const resetCachedSessionInfoSpy = jest.spyOn(sessionInfoService, 'resetCachedSessionInfo'); const resetCachedPreauthInfoSpy = jest.spyOn(sessionInfoService, 'resetCachedPreauthInfo'); (0, resetServices_1.resetAllCachedServices)(); expect(resetCachedAuthTokenSpy).toHaveBeenCalled(); expect(resetCachedSessionInfoSpy).toHaveBeenCalled(); expect(resetCachedPreauthInfoSpy).toHaveBeenCalled(); }); }); //# sourceMappingURL=resetServices.spec.js.map