Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added unit test
  • Loading branch information
daros10 committed Mar 17, 2020
commit c34f9fafe346e0dcb334745971962c4b64e3ab4e
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ describe('TimeClockComponent', () => {
expect(component).toBeTruthy();
});

it('should have p tag as \'time-clock works!\'', async(() => {
it('should have p tag as \'Dario clocked out at hh:mm:ss\'', async(() => {
// tslint:disable-next-line: no-shadowed-variable
const { app, fixture } = setup();
fixture.detectChanges();
const compile = fixture.debugElement.nativeElement;
const ptag = compile.querySelector('p');
expect(ptag.textContent).toBe('time-clock works!');
expect(ptag.textContent).toBe('Dario clocked out at hh:mm:ss');
}));

});