[CORD-1653] Adding a debug tab in model details
Change-Id: I6c3be4227309cbeb2dd7ab6252c1312dfd00fb18
diff --git a/src/app/core/debug/debug.service.spec.ts b/src/app/core/debug/debug.service.spec.ts
index 0d27fa6..a26d8cc 100644
--- a/src/app/core/debug/debug.service.spec.ts
+++ b/src/app/core/debug/debug.service.spec.ts
@@ -56,16 +56,16 @@
it('should disable the global debug status', () => {
spyOn(window.localStorage, 'getItem')
.and.returnValue('true');
- service.toggleGlobalDebug();
- expect(window.localStorage.setItem).toHaveBeenCalledWith('debug', 'false');
+ service.toggleDebug('global');
+ expect(window.localStorage.setItem).toHaveBeenCalledWith('debug-global', 'false');
expect(service.status.global).toBeFalsy();
expect($scope.$broadcast).toHaveBeenCalledWith('xos.debug.status', service.status);
});
it('should enable the global debug status', () => {
spyOn(window.localStorage, 'getItem')
.and.returnValue('false');
- service.toggleGlobalDebug();
- expect(window.localStorage.setItem).toHaveBeenCalledWith('debug', 'true');
+ service.toggleDebug('global');
+ expect(window.localStorage.setItem).toHaveBeenCalledWith('debug-global', 'true');
expect(service.status.global).toBeTruthy();
expect($scope.$broadcast).toHaveBeenCalledWith('xos.debug.status', service.status);
});