Skip to content

Commit

Permalink
Add test for uk state school
Browse files Browse the repository at this point in the history
  • Loading branch information
warrensearle authored and YaaL committed Apr 27, 2020
1 parent b633188 commit 3b84c92
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/unit/views/Exercises/Show/Applications.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,15 @@ describe('@/views/Exercises/Show/Applications', () => {
});
});

it('calls .attendedUKStateSchool() to parse stateOrFeeSchool', () => {
wrapper.vm.attendedUKStateSchool = jest.fn();
wrapper.vm.gatherContacts();
expect(wrapper.vm.attendedUKStateSchool).toHaveBeenCalledTimes(mockApplications.length);
mockApplications.forEach((mockApp) => {
expect(wrapper.vm.attendedUKStateSchool).toHaveBeenCalledWith(mockApp.equalityAndDiversitySurvey);
});
});

it('returns an array with one row per application', () => {
const contacts = wrapper.vm.gatherContacts();

Expand Down

0 comments on commit 3b84c92

Please sign in to comment.