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 a246db3 commit b54fb96Copy full SHA for b54fb96
frontend/src/app/project/state/project/project.service.spec.ts
@@ -0,0 +1,23 @@
1
+import { ProjectService } from './project.service';
2
+
3
+describe('ProjectService', () => {
4
+ let service: ProjectService;
5
6
+ const httpClient: any = {};
7
+ const projectStore: any = {
8
+ setLoading: jasmine.createSpy('setLoading').and.callThrough()
9
+ };
10
11
+ beforeEach(() => {
12
+ service = new ProjectService(
13
+ httpClient,
14
+ projectStore
15
+ );
16
+ service.baseUrl = '';
17
+ });
18
19
+ it('should be able to set loading ', () => {
20
+ service.setLoading(true);
21
+ expect(projectStore.setLoading).toHaveBeenCalledWith(true);
22
23
+});
0 commit comments