change xit back to it in tests, but add skip to backoff-tiime suite

This commit is contained in:
Gregg Zigler 2015-06-23 11:38:36 -04:00
parent 3a9fce12bf
commit c1558bb1b0
2 changed files with 13 additions and 13 deletions

View File

@ -1200,7 +1200,7 @@ describe('Wallet service', function() {
});
});
});
xit('should return correct kb to send max', function(done) {
it('should return correct kb to send max', function(done) {
helpers.stubUtxos(server, wallet, _.range(1, 10, 0), function() {
server.getBalance({}, function(err, balance) {
should.not.exist(err);
@ -1662,7 +1662,7 @@ describe('Wallet service', function() {
});
});
xit('should create tx for type multiple_outputs', function(done) {
it('should create tx for type multiple_outputs', function(done) {
helpers.stubUtxos(server, wallet, [100, 200], function() {
var outputs = [
{ toAddress: '18PzpUFkFZE8zKWUPvfykkTxmB9oMR8qP7', amount: 75, message: 'message #1' },
@ -1677,7 +1677,7 @@ describe('Wallet service', function() {
});
});
xit('should fail to create tx for type multiple_outputs with invalid output argument', function(done) {
it('should fail to create tx for type multiple_outputs with invalid output argument', function(done) {
helpers.stubUtxos(server, wallet, [100, 200], function() {
var outputs = [
{ toAddress: '18PzpUFkFZE8zKWUPvfykkTxmB9oMR8qP7', amount: 80, message: 'message #1', foo: 'bar' },
@ -1692,7 +1692,7 @@ describe('Wallet service', function() {
});
});
xit('should fail to create tx for unsupported proposal type', function(done) {
it('should fail to create tx for unsupported proposal type', function(done) {
helpers.stubUtxos(server, wallet, [100, 200], function() {
var txOpts = helpers.createProposalOpts('18PzpUFkFZE8zKWUPvfykkTxmB9oMR8qP7', 80, 'some message', TestData.copayers[0].privKey_1H_0);
txOpts.type = 'bogus';
@ -1704,7 +1704,7 @@ describe('Wallet service', function() {
});
});
xit('should be able to send max amount', function(done) {
it('should be able to send max amount', function(done) {
helpers.stubUtxos(server, wallet, _.range(1, 10, 0), function() {
server.getBalance({}, function(err, balance) {
should.not.exist(err);
@ -1727,7 +1727,7 @@ describe('Wallet service', function() {
});
});
});
xit('should be able to send max non-locked amount', function(done) {
it('should be able to send max non-locked amount', function(done) {
helpers.stubUtxos(server, wallet, _.range(1, 10, 0), function() {
var txOpts = helpers.createProposalOpts('18PzpUFkFZE8zKWUPvfykkTxmB9oMR8qP7', 3.5, null, TestData.copayers[0].privKey_1H_0);
server.createTx(txOpts, function(err, tx) {
@ -1756,7 +1756,7 @@ describe('Wallet service', function() {
});
});
describe('#createTx backoff time', function(done) {
describe.skip('#createTx backoff time', function(done) {
var server, wallet, txid;
beforeEach(function(done) {

View File

@ -17,7 +17,7 @@ describe('TXProposal', function() {
should.exist(txp.toAddress);
should.not.exist(txp.outputs);
});
xit('should create a multiple-outputs TXP', function() {
it('should create a multiple-outputs TXP', function() {
var txp = TXP.create(aTxpOpts(TXP.Types.MULTIPLEOUTPUTS));
should.exist(txp);
should.not.exist(txp.toAddress);
@ -31,7 +31,7 @@ describe('TXProposal', function() {
should.exist(txp);
txp.toAddress.should.equal(aTXP().toAddress);
});
xit('should copy a multiple-outputs TXP', function() {
it('should copy a multiple-outputs TXP', function() {
var txp = TXP.fromObj(aTXP(TXP.Types.MULTIPLEOUTPUTS));
should.exist(txp);
txp.outputs.should.deep.equal(aTXP(TXP.Types.MULTIPLEOUTPUTS).outputs);
@ -64,14 +64,14 @@ describe('TXProposal', function() {
});
describe('#getHeader', function() {
xit('should be compatible with simple proposal legacy header', function() {
it('should be compatible with simple proposal legacy header', function() {
var x = TXP.fromObj(aTXP());
var proposalHeader = x.getHeader();
var pH = WalletUtils.getProposalHash.apply(WalletUtils, proposalHeader);
var uH = WalletUtils.getProposalHash(x.toAddress, x.amount, x.message, x.payProUrl);
pH.should.equal(uH);
});
xit('should handle multiple-outputs', function() {
it('should handle multiple-outputs', function() {
var x = TXP.fromObj(aTXP(TXP.Types.MULTIPLEOUTPUTS));
var proposalHeader = x.getHeader();
should.exist(proposalHeader);
@ -81,12 +81,12 @@ describe('TXProposal', function() {
});
describe('#getTotalAmount', function() {
xit('should be compatible with simple proposal legacy amount', function() {
it('should be compatible with simple proposal legacy amount', function() {
var x = TXP.fromObj(aTXP());
var total = x.getTotalAmount();
total.should.equal(x.amount);
});
xit('should handle multiple-outputs', function() {
it('should handle multiple-outputs', function() {
var x = TXP.fromObj(aTXP(TXP.Types.MULTIPLEOUTPUTS));
var totalOutput = 0;
_.each(x.outputs, function(o) { totalOutput += o.amount });