本文整理汇总了TypeScript中assert.strict.notEqual方法的典型用法代码示例。如果您正苦于以下问题:TypeScript strict.notEqual方法的具体用法?TypeScript strict.notEqual怎么用?TypeScript strict.notEqual使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类assert.strict
的用法示例。
在下文中一共展示了strict.notEqual方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: function
bitgo.wallets().createWalletWithKeychains(options, function(err, result) {
assert.equal(err, null);
assert.notEqual(result, null);
result.should.have.property('wallet');
const wallet = result.wallet;
assert.equal(wallet.balance(), 0);
assert.equal(wallet.spendableBalance(), 0);
assert.equal(wallet.label(), TEST_WALLET_LABEL);
assert.equal(wallet.confirmedBalance(), 0);
assert.equal(wallet.keychains.length, 3);
assert.equal(bitgo.keychains().isValid({ key: wallet.keychains[0].xpub }), true);
assert.equal(bitgo.keychains().isValid({ key: wallet.keychains[1].xpub }), true);
assert.equal(bitgo.keychains().isValid({ key: wallet.keychains[2].xpub }), true);
assert.equal(wallet.keychains[0].xpub, result.userKeychain.xpub);
assert.equal(wallet.keychains[1].xpub, result.backupKeychain.xpub);
result.userKeychain.should.have.property('encryptedXprv');
result.backupKeychain.should.not.have.property('encryptedXprv');
result.should.not.have.property('warning');
result.wallet.canSendInstant().should.eql(true);
wallet.delete({}, function() {});
done();
});
示例2: function
bitgo.refreshToken({ refreshToken: 'BADTOKEN' }, function(err, response) {
// Expect error
assert.notEqual(err, null);
err.message.should.equal('invalid_grant');
err.should.have.property('status');
done();
});
示例3: it
it('create', function() {
// must use seed of at least 128 bits
// standard test vector taken from bip32 spec
const seed = new Buffer('000102030405060708090a0b0c0d0e0f', 'hex');
assert.equal(keychains.create({ seed: seed }).xprv, 'xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi');
// two keys created one after the other with no seed should have
// non-equivalent xprivs, i.e. check that the RNG is actually working.
assert.notEqual(keychains.create().xprv, keychains.create().xprv);
});