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 89ddb0a1d6310de15813f5dd273ee5d7adbcba81
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ describe('TimeRangeCustomComponent', () => {
entriesForReport: [timeEntry],
};

const userId = 'test-userId';
const projectId = 'test-projectId';
const activityId = 'test-activityId';
const [userId, projectId, activityId] = ['test-userId', 'test-projectId', 'test-activityId'];

beforeEach(async () => {
await TestBed.configureTestingModule({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ describe('Reports Page', () => {
entriesForReport: [timeEntry],
};

const userId = 'test-userId';
const projectId = 'test-projectId';
const activityId = 'test-activityId';
const [userId, projectId, activityId] = ['test-userId', 'test-projectId', 'test-activityId'];

beforeEach(
waitForAsync(() => {
Expand Down Expand Up @@ -135,9 +133,6 @@ describe('Reports Page', () => {
expect(component.onSubmit).toHaveBeenCalled();
});

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

Expand Down