I changed some test fixtures to be more like how we'll do WAC in production.
Changing the config file settings used by populateEmptyTrellis affected WebAccessControl validation of WAC
When reviewing, please expand the webAccessControl.test.js file - it has the most changes, but isn't too overwhelming to review.
This is, effectively, an intermediate step - #63 is about getting past hardcoding usernames in the scripts and will also address config information being set in environment vars by terraform for deployments to AWS (dev, stage, prod).
Fun fact: testing for .toThrow for an async method is ... non-obvious. And the syntax I found on my first x web searches didn't work for some reason (some config thing? some babel thing??)
Closes #56
Besides tweaking populateEmptyTrellis script:
When reviewing, please expand the webAccessControl.test.js file - it has the most changes, but isn't too overwhelming to review.
This is, effectively, an intermediate step - #63 is about getting past hardcoding usernames in the scripts and will also address config information being set in environment vars by terraform for deployments to AWS (dev, stage, prod).
Fun fact: testing for .toThrow for an async method is ... non-obvious. And the syntax I found on my first x web searches didn't work for some reason (some config thing? some babel thing??)