This commit is contained in:
Jaco Greeff 2017-02-28 14:21:19 +01:00 committed by GitHub
parent ab98ec3bf7
commit 88449671a1
2 changed files with 3 additions and 4 deletions

View File

@ -20,7 +20,7 @@ import { parse as parseUrl } from 'url';
import { encodePath, encodeUrl } from '~/util/dapplink'; import { encodePath, encodeUrl } from '~/util/dapplink';
const DEFAULT_URL = 'https://mkr.market'; const DEFAULT_URL = 'https://oasisdex.com';
const LS_LAST_ADDRESS = '_parity::webLastAddress'; const LS_LAST_ADDRESS = '_parity::webLastAddress';
const hasProtocol = /^https?:\/\//; const hasProtocol = /^https?:\/\//;

View File

@ -17,10 +17,9 @@
import { shallow } from 'enzyme'; import { shallow } from 'enzyme';
import React from 'react'; import React from 'react';
import { DEFAULT_URL } from './store';
import Web from './'; import Web from './';
const TEST_URL = 'https://mkr.market';
let api; let api;
let component; let component;
@ -30,7 +29,7 @@ function createApi () {
return api; return api;
} }
function render (url = TEST_URL) { function render (url = DEFAULT_URL) {
component = shallow( component = shallow(
<Web params={ { url } } />, <Web params={ { url } } />,
{ {