mirror of
https://github.com/Permissionless-Software-Foundation/bch-js.git
synced 2026-09-21 16:51:59 -07:00
Updated unit tests
This commit is contained in:
+5
-5
@@ -20,8 +20,8 @@ describe('#X402 Integration', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
assert.strictEqual(bchjs.wif, '')
|
assert.strictEqual(bchjs.wif, '')
|
||||||
assert.strictEqual(bchjs.paymentAmountSats, 20000)
|
assert.strictEqual(bchjs.paymentAmountSats, 10000)
|
||||||
assert.strictEqual(bchjs.bchServerURL, 'https://bch.fullstack.cash')
|
assert.strictEqual(bchjs.bchServerURL, 'https://bch.fullstack.cash/v6/')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should accept wif in config', () => {
|
it('should accept wif in config', () => {
|
||||||
@@ -59,8 +59,8 @@ describe('#X402 Integration', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
assert.strictEqual(bchjs.wif, '')
|
assert.strictEqual(bchjs.wif, '')
|
||||||
assert.strictEqual(bchjs.paymentAmountSats, 20000)
|
assert.strictEqual(bchjs.paymentAmountSats, 10000)
|
||||||
assert.strictEqual(bchjs.bchServerURL, 'https://bch.fullstack.cash')
|
assert.strictEqual(bchjs.bchServerURL, 'https://bch.fullstack.cash/v6/')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should read WIF from BCHJSWIF environment variable', () => {
|
it('should read WIF from BCHJSWIF environment variable', () => {
|
||||||
@@ -168,7 +168,7 @@ describe('#X402 Integration', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
assert.strictEqual(bchjs.restURL, customRestURL)
|
assert.strictEqual(bchjs.restURL, customRestURL)
|
||||||
assert.strictEqual(bchjs.bchServerURL, 'https://bch.fullstack.cash')
|
assert.strictEqual(bchjs.bchServerURL, 'https://bch.fullstack.cash/v6/')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user