Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
✅ Change test synrax
Browse files Browse the repository at this point in the history
  • Loading branch information
shuse2 committed Sep 12, 2018
1 parent 2c12ba8 commit 83b2bb2
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 deletions.
6 changes: 3 additions & 3 deletions test/commands/transaction/create/delegate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ describe('transaction:create:delegate', () => {
describe('transaction:create:delegate', () => {
setupTest()
.command(['transaction:create:delegate'])
.catch(error =>
expect(error.message).to.contain('Missing 1 required arg'),
)
.catch(error => {
return expect(error.message).to.contain('Missing 1 required arg');
})
.it('should throw an error');
});

Expand Down
32 changes: 16 additions & 16 deletions test/commands/transaction/create/multisignature.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,18 @@ describe('transaction:create:multisignature', () => {
describe('transaction:create:multisignature', () => {
setupTest()
.command(['transaction:create:multisignature'])
.catch(error =>
expect(error.message).to.contain('Missing 3 required args'),
)
.catch(error => {
return expect(error.message).to.contain('Missing 3 required args');
})
.it('should throw an error');
});

describe('transaction:create:multisignature lifetime', () => {
setupTest()
.command(['transaction:create:multisignature', defaultLifetime])
.catch(error =>
expect(error.message).to.contain('Missing 2 required args'),
)
.catch(error => {
return expect(error.message).to.contain('Missing 2 required args');
})
.it('should throw an error');
});

Expand All @@ -88,9 +88,9 @@ describe('transaction:create:multisignature', () => {
defaultLifetime,
defaultMinimum,
])
.catch(error =>
expect(error.message).to.contain('Missing 1 required arg'),
)
.catch(error => {
return expect(error.message).to.contain('Missing 1 required arg');
})
.it('should throw an error');
});

Expand All @@ -102,9 +102,9 @@ describe('transaction:create:multisignature', () => {
defaultMinimum,
defaultKeysgroup.join(','),
])
.catch(error =>
expect(error.message).to.contain('Lifetime must be an integer.'),
)
.catch(error => {
return expect(error.message).to.contain('Lifetime must be an integer.');
})
.it('should throw an error when lifetime is not integer');

setupTest()
Expand All @@ -114,11 +114,11 @@ describe('transaction:create:multisignature', () => {
'minimum',
defaultKeysgroup.join(','),
])
.catch(error =>
expect(error.message).to.contain(
.catch(error => {
return expect(error.message).to.contain(
'Minimum number of signatures must be an integer.',
),
)
);
})
.it('should throw an error when minimum is not integer');

setupTest()
Expand Down
12 changes: 6 additions & 6 deletions test/commands/transaction/create/transfer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ describe('transaction:create:transfer', () => {
describe('transaction:create:transfer', () => {
setupTest()
.command(['transaction:create:transfer'])
.catch(error =>
expect(error.message).to.contain('Missing 2 required args'),
)
.catch(error => {
return expect(error.message).to.contain('Missing 2 required args');
})
.it('should throw an error');
});

describe('transaction:create:transfer amount', () => {
setupTest()
.command(['transaction:create:transfer', defaultAmount])
.catch(error =>
expect(error.message).to.contain('Missing 1 required arg'),
)
.catch(error => {
return expect(error.message).to.contain('Missing 1 required arg');
})
.it('should throw an error');
});

Expand Down
16 changes: 8 additions & 8 deletions test/commands/transaction/create/vote.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ describe('transaction:create:transfer', () => {
describe('transaction:create:vote', () => {
setupStub()
.command(['transaction:create:vote'])
.catch(error =>
expect(error.message).to.contain(
.catch(error => {
return expect(error.message).to.contain(
'At least one of votes and/or unvotes options must be provided.',
),
)
);
})
.it('should throw an error without vote or unvote');
});

Expand Down Expand Up @@ -194,11 +194,11 @@ describe('transaction:create:transfer', () => {
`--votes=${defaultVote.join(',')}`,
`--unvotes=${defaultVote.join(',')}`,
])
.catch(error =>
expect(error.message).to.contain(
.catch(error => {
return expect(error.message).to.contain(
'Votes and unvotes sources must not be the same.',
),
)
);
})
.it('should throw an error when vote and unvote are the same');

setupStub()
Expand Down

0 comments on commit 83b2bb2

Please sign in to comment.