aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-01-19 07:51:57 +0800
committerJacob Evans <jacob@dekz.net>2018-01-19 07:51:57 +0800
commit2ac806ef088ef4e9d037bc0227ce493f8f09a19e (patch)
tree45bad0fba140aca8256b8ddc5ed232887fd8ed63
parentfb77817c2d5258ecf92901ed9bd7db35bc11078f (diff)
downloaddexon-sol-tools-2ac806ef088ef4e9d037bc0227ce493f8f09a19e.tar.gz
dexon-sol-tools-2ac806ef088ef4e9d037bc0227ce493f8f09a19e.tar.zst
dexon-sol-tools-2ac806ef088ef4e9d037bc0227ce493f8f09a19e.zip
Prettier
-rw-r--r--packages/0x.js/CHANGELOG.md1
-rw-r--r--packages/assert/src/index.ts2
-rw-r--r--packages/assert/test/assert_test.ts8
3 files changed, 8 insertions, 3 deletions
diff --git a/packages/0x.js/CHANGELOG.md b/packages/0x.js/CHANGELOG.md
index 703640e48..0846ee7c3 100644
--- a/packages/0x.js/CHANGELOG.md
+++ b/packages/0x.js/CHANGELOG.md
@@ -3,6 +3,7 @@
## v0.30.1 - _January 18, 2018_
* Fix a bug allowing negative fill values (#212)
+
## v0.30.0 - _January 17, 2018_
* Add an error parameter to the order watcher callback (#312)
diff --git a/packages/assert/src/index.ts b/packages/assert/src/index.ts
index 0ea666629..7ad574ec7 100644
--- a/packages/assert/src/index.ts
+++ b/packages/assert/src/index.ts
@@ -13,7 +13,7 @@ export const assert = {
isValidBaseUnitAmount(variableName: string, value: BigNumber) {
assert.isBigNumber(variableName, value);
const isNegative = value.lessThan(0);
- this.assert(!isNegative, `${variableName} cannot be a negative number, found value: ${value.toNumber()}` );
+ this.assert(!isNegative, `${variableName} cannot be a negative number, found value: ${value.toNumber()}`);
const hasDecimals = value.decimalPlaces() !== 0;
this.assert(
!hasDecimals,
diff --git a/packages/assert/test/assert_test.ts b/packages/assert/test/assert_test.ts
index 732e99b3e..b0fa398d6 100644
--- a/packages/assert/test/assert_test.ts
+++ b/packages/assert/test/assert_test.ts
@@ -25,11 +25,15 @@ describe('Assertions', () => {
describe('#isValidBaseUnitAmount', () => {
it('should not throw for valid input', () => {
const validInputs = [new BigNumber(23), new BigNumber('45000000')];
- validInputs.forEach(input => expect(assert.isValidBaseUnitAmount.bind(assert, variableName, input)).to.not.throw());
+ validInputs.forEach(input =>
+ expect(assert.isValidBaseUnitAmount.bind(assert, variableName, input)).to.not.throw(),
+ );
});
it('should throw for invalid input', () => {
const invalidInputs = [0, undefined, new BigNumber(3.145), 3.145, new BigNumber(-400)];
- invalidInputs.forEach(input => expect(assert.isValidBaseUnitAmount.bind(assert, variableName, input)).to.throw());
+ invalidInputs.forEach(input =>
+ expect(assert.isValidBaseUnitAmount.bind(assert, variableName, input)).to.throw(),
+ );
});
});
describe('#isString', () => {