Skip to content
Merged
Show file tree
Hide file tree
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
test: TTL-910 fix tests
  • Loading branch information
Santiago220991 committed Aug 1, 2023
commit 13fcb102083dd903bde1f8742a3dcfc23c512b5d
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ describe('TimeRangeCustomComponent', () => {
});

it('When the ngOnChanges method is the first change, the onSubmit method is not called', () => {
spyOn(component, 'onSubmit');

const userId = 'user-2';
const projectId = 'project_id';
const activityId = 'activity_id';
spyOn(component, 'onSubmit');

component.ngOnChanges({
userId: new SimpleChange(null, userId, true),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ describe('Reports Page', () => {
});

it('When the ngOnChanges method is the first change, the onSubmit method is not called', () => {
spyOn(component, 'onSubmit');
const userId = 'user_id';
const projectId = 'project_id';
const activityId = 'activity_id';
spyOn(component, 'onSubmit');

component.ngOnChanges({
userId: new SimpleChange(null, userId, true),
Expand Down