Skip to content

Commit 3bc0ae3

Browse files
author
Juan Gabriel Guzman
committed
test: #204 Removing false positive test
1 parent 77ad971 commit 3bc0ae3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/app/modules/time-clock/services/entry.service.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ describe('EntryService', () => {
5555
});
5656

5757
it('load all Entries', () => {
58-
service.loadEntries(new Date().getMonth).subscribe();
58+
const month = new Date().getMonth();
59+
service.loadEntries(month).subscribe();
5960

60-
const loadEntryRequest = httpMock.expectOne(`${service.baseUrl}`);
61+
const loadEntryRequest = httpMock.expectOne(`${service.baseUrl}?month=${month}`);
6162
expect(loadEntryRequest.request.method).toBe('GET');
6263

6364
});

0 commit comments

Comments
 (0)