Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KjartanE committed Jan 26, 2023
1 parent d191626 commit 44931b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
9 changes: 0 additions & 9 deletions api/src/models/survey-view.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,6 @@ describe('GetSurveyPurposeAndMethodologyData', () => {
it('sets vantage_code_ids', () => {
expect(data.vantage_code_ids).to.eql([]);
});

it('sets surveyed_all_areas', () => {
expect(data.surveyed_all_areas).to.equal('false');
});
});

describe('All values provided with first nations id', () => {
Expand All @@ -454,7 +450,6 @@ describe('GetSurveyPurposeAndMethodologyData', () => {
field_method_id: 2,
ecological_season_id: 3,
vantage_ids: [4, 5],
surveyed_all_areas: true,
revision_count: 'count'
};

Expand Down Expand Up @@ -482,10 +477,6 @@ describe('GetSurveyPurposeAndMethodologyData', () => {
expect(data.vantage_code_ids).to.eql(obj.vantage_ids);
});

it('sets surveyed_all_areas', () => {
expect(data.surveyed_all_areas).to.eql('true');
});

it('sets revision_count', function () {
expect(data.revision_count).to.equal('count');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ describe('getSurveyForUpdate', () => {
funding_sources: []
},
agreements: {
sedis_procedures_accepted: 'false',
foippa_requirements_accepted: 'false'
sedis_procedures_accepted: 'true',
foippa_requirements_accepted: 'true'
}
}
};
Expand Down Expand Up @@ -150,8 +150,8 @@ describe('getSurveyForUpdate', () => {
funding_sources: [1]
},
agreements: {
sedis_procedures_accepted: 'false',
foippa_requirements_accepted: 'false'
sedis_procedures_accepted: 'true',
foippa_requirements_accepted: 'true'
}
}
};
Expand Down

0 comments on commit 44931b1

Please sign in to comment.