Skip to content

Commit 6e89de1

Browse files
author
Warren Ayling
authored
Merge pull request #22 from wozzer72/parents_and_subs
Adding rudimentary expectations on successful login for establishment…
2 parents a93810a + 1fccb05 commit 6e89de1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/establishments/establishment.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ describe ("establishment", async () => {
108108

109109
expect(loginResponse.body.establishment.id).toEqual(establishmentId);
110110
expect(loginResponse.body.establishment.uid).toEqual(establishmentUid);
111+
expect(loginResponse.body.establishment.isParent).toEqual(false);
112+
expect(loginResponse.body.establishment).not.toHaveProperty('parentUid');
111113
expect(loginResponse.body.establishment.isRegulated).toEqual(false);
112114
expect(nmdsIdRegex.test(loginResponse.body.establishment.nmdsId)).toEqual(true);
113115
expect(loginResponse.body.isFirstLogin).toEqual(true);

0 commit comments

Comments
 (0)