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 599b743906c8e666d993f1e74ff3f18a7522796e
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ describe('TimeRangeCustomComponent', () => {

it('When the ngOnChanges method is called, the onSubmit method is called', () => {
const userIdCalled = 'test-user-1';
const projectIdCalled = 'test-project';
const activityIdCalled = 'test-activity';
const projectIdCalled = 'test-project_id';
const activityIdCalled = 'test-activity_id';
spyOn(component, 'onSubmit');

component.ngOnChanges({
Expand All @@ -131,9 +131,9 @@ describe('TimeRangeCustomComponent', () => {
});

it('When the ngOnChanges method is the first change, the onSubmit method is not called', () => {
const userIdNotCalled = 'test-user-2';
const projectIdNotCalled = 'test-project';
const activityIdNotCalled = 'test-activity';
const userIdNotCalled = 'user-2';
const projectIdNotCalled = 'project_id';
const activityIdNotCalled = 'activity_id';
spyOn(component, 'onSubmit');

component.ngOnChanges({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ describe('Reports Page', () => {
});

it('When the ngOnChanges method is the first change, the onSubmit method is not called', () => {
const userIdNotCalled = 'test_user_id';
const projectIdNotCalled = 'test-project_id';
const activityIdNotCalled = 'test-activity_id';
const userIdNotCalled = 'user_id';
const projectIdNotCalled = 'project_id';
const activityIdNotCalled = 'activity_id';
spyOn(component, 'onSubmit');

component.ngOnChanges({
Expand Down