Skip to content

Commit

Permalink
chore: fix parsing url search params in e2e test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
karolsojko committed Aug 17, 2023
1 parent 24afeae commit 94361f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/snjs/mocha/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
<script type="module">
import MainRegistry from './TestRegistry/MainRegistry.js'

const vaultTestsEnabled = urlParams.get('vaults') === 'enabled' ? true : false;

const urlSearchParams = new URLSearchParams(window.location.search);
const vaultTestsEnabled = urlSearchParams.get('vaults') === 'enabled' ? true : false;
MainRegistry.VaultTests.enabled = MainRegistry.VaultTests.enabled || vaultTestsEnabled;

const loadTest = (fileName) => {
Expand Down

0 comments on commit 94361f0

Please sign in to comment.