Skip to content

Commit

Permalink
Use jest-environment-jsdom-global to reconfigure jsdom per
Browse files Browse the repository at this point in the history
  • Loading branch information
cehsu committed Oct 4, 2018
1 parent a806fc7 commit 39b6efb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ describe('selectors', () => {
'returns true when on localhost so the local mock Vet360 will run',
).to.be.true;

global.document.location.hostname = 'staging.vets.gov';
/* eslint-disable no-undef */
jsdom.reconfigure({
url: 'https://staging.vets.gov/',
});
/* eslint-enable no-undef */
result = selectors.selectIsVet360AvailableForUser(state);
expect(
result,
Expand Down

0 comments on commit 39b6efb

Please sign in to comment.