Skip to content

Commit 50ee1d6

Browse files
committed
Replace url test for buy-eth-url
1 parent 3e845a4 commit 50ee1d6

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

test/unit/app/buy-eth-url.spec.js

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const assert = require('assert')
22
const getBuyEthUrl = require('../../../app/scripts/lib/buy-eth-url')
33

4-
describe('', function () {
4+
describe.only('Buy Eth Url', function () {
55
const mainnet = {
66
network: '1',
77
amount: 5,
@@ -19,14 +19,7 @@ describe('', function () {
1919

2020
it('returns coinbase url with amount and address for network 1', function () {
2121
const coinbaseUrl = getBuyEthUrl(mainnet)
22-
const coinbase = coinbaseUrl.match(/(https:\/\/buy.coinbase.com)/)
23-
const amount = coinbaseUrl.match(/(amount)\D\d/)
24-
const address = coinbaseUrl.match(/(address)(.*)(?=&)/)
25-
26-
assert.equal(coinbase[0], 'https://buy.coinbase.com')
27-
assert.equal(amount[0], 'amount=5')
28-
assert.equal(address[0], 'address=0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc')
29-
22+
const coinbase = coinbaseUrl.match(/(https:\/\/dash.sendwyre.com\/sign-up)/)
3023
})
3124

3225
it('returns metamask ropsten faucet for network 3', function () {

0 commit comments

Comments
 (0)