Skip to content

Commit b54fb96

Browse files
committed
Unit test Statements 51.15% Branche 23.08% Functions 30.13% Lines 50.22% are covered.
1 parent a246db3 commit b54fb96

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)