Skip to content

Commit de6671e

Browse files
committed
rm integration tests
1 parent 7cdabef commit de6671e

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ The below examples are implemented as integration tests, they should be very eas
100100

101101
- [Generate a random address](https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/basic.js#L9)
102102
- [Generate a address from a SHA256 hash](https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/basic.js#L20)
103-
- [Generate a address and WIF for Litecoin](https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/basic.js#L30)
104-
- [Import an address via WIF](https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/basic.js#L44)
105-
- [Create a Transaction](https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/basic.js#L51)
106103
- [Generate a address and WIF for Litecoin](https://github.com/bitcoin/bitcoinjs-lib/blob/master/test/integration/basic.js#L29)
107104
- [Import an address via WIF](https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/basic.js#L43)
108105
- [Create a Transaction](https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/basic.js#L50)

test/integration/advanced.js

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
11
/* global describe, it */
22

3-
var assert = require('assert')
43
var bitcoin = require('../../')
54
var blockchain = require('./_blockchain')
65

76
describe('bitcoinjs-lib (advanced)', function () {
8-
it('can sign a Bitcoin message', function () {
9-
var keyPair = bitcoin.ECPair.fromWIF('5KYZdUEo39z3FPrtuX2QbbwGnNP5zTd7yyr2SC1j299sBCnWjss')
10-
var message = 'This is an example of a signed message.'
11-
12-
var signature = bitcoin.message.sign(keyPair, message)
13-
assert.strictEqual(signature.toString('base64'), 'G9L5yLFjti0QTHhPyFrZCT1V/MMnBtXKmoiKDZ78NDBjERki6ZTQZdSMCtkgoNmp17By9ItJr8o7ChX0XxY91nk=')
14-
})
15-
16-
it('can verify a Bitcoin message', function () {
17-
var address = '1HZwkjkeaoZfTSaJxDw6aKkxp45agDiEzN'
18-
var signature = 'HJLQlDWLyb1Ef8bQKEISzFbDAKctIlaqOpGbrk3YVtRsjmC61lpE5ErkPRUFtDKtx98vHFGUWlFhsh3DiW6N0rE'
19-
var message = 'This is an example of a signed message.'
20-
21-
assert(bitcoin.message.verify(address, signature, message))
22-
})
23-
24-
it('can create a transaction using OP_RETURN', function (done) {
25-
this.timeout(30000)
7+
it('can create an OP_RETURN transaction', function (done) {
8+
this.timeout(20000)
269

2710
var network = bitcoin.networks.testnet
2811
var keyPair = bitcoin.ECPair.makeRandom({ network: network })

0 commit comments

Comments
 (0)