mirror of
https://github.com/Permissionless-Software-Foundation/bch-js.git
synced 2026-09-21 16:51:59 -07:00
Got x402 integration tests working
This commit is contained in:
+2
-2
@@ -78,8 +78,8 @@ class BCHJS {
|
||||
} else if (process.env.BCHJSWIF && process.env.BCHJSWIF !== '') {
|
||||
this.wif = process.env.BCHJSWIF
|
||||
}
|
||||
this.paymentAmountSats = (config && config.paymentAmountSats) || 2000
|
||||
this.bchServerURL = (config && config.bchServerURL) || 'http://free-bch.fullstack.cash'
|
||||
this.paymentAmountSats = (config && config.paymentAmountSats) || 2000 * 10
|
||||
this.bchServerURL = (config && config.bchServerURL) || 'https://free-bch.fullstack.cash'
|
||||
|
||||
const libConfig = {
|
||||
restURL: this.restURL,
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@ describe('#X402 Integration', () => {
|
||||
|
||||
assert.strictEqual(bchjs.wif, '')
|
||||
assert.strictEqual(bchjs.paymentAmountSats, 2000)
|
||||
assert.strictEqual(bchjs.bchServerURL, 'http://free-bch.fullstack.cash')
|
||||
assert.strictEqual(bchjs.bchServerURL, 'https://free-bch.fullstack.cash')
|
||||
})
|
||||
|
||||
it('should accept wif in config', () => {
|
||||
@@ -55,7 +55,7 @@ describe('#X402 Integration', () => {
|
||||
|
||||
assert.strictEqual(bchjs.wif, '')
|
||||
assert.strictEqual(bchjs.paymentAmountSats, 2000)
|
||||
assert.strictEqual(bchjs.bchServerURL, 'http://free-bch.fullstack.cash')
|
||||
assert.strictEqual(bchjs.bchServerURL, 'https://free-bch.fullstack.cash')
|
||||
})
|
||||
|
||||
it('should read WIF from BCHJSWIF environment variable', () => {
|
||||
|
||||
Reference in New Issue
Block a user