Fix redundant spaces
This commit is contained in:
parent
818a50a3fb
commit
c8e52882ca
@ -2,11 +2,11 @@ import BigNumber from 'bignumber.js';
|
|||||||
import * as chai from 'chai';
|
import * as chai from 'chai';
|
||||||
import 'mocha';
|
import 'mocha';
|
||||||
|
|
||||||
import { ZeroEx } from '../src/0x';
|
import {ZeroEx} from '../src/0x';
|
||||||
import { RemainingFillableCalculator } from '../src/order_watcher/remaining_fillable_calculator';
|
import {RemainingFillableCalculator} from '../src/order_watcher/remaining_fillable_calculator';
|
||||||
import { ECSignature, SignedOrder } from '../src/types';
|
import {ECSignature, SignedOrder} from '../src/types';
|
||||||
|
|
||||||
import { chaiSetup } from './utils/chai_setup';
|
import {chaiSetup} from './utils/chai_setup';
|
||||||
|
|
||||||
chaiSetup.configure();
|
chaiSetup.configure();
|
||||||
const expect = chai.expect;
|
const expect = chai.expect;
|
||||||
@ -26,7 +26,7 @@ describe('RemainingFillableCalculator', () => {
|
|||||||
const decimals: number = 4;
|
const decimals: number = 4;
|
||||||
const zero: BigNumber = new BigNumber(0);
|
const zero: BigNumber = new BigNumber(0);
|
||||||
const zeroAddress = '0x0';
|
const zeroAddress = '0x0';
|
||||||
const signature: ECSignature = { v: 27, r: '', s: ''};
|
const signature: ECSignature = {v: 27, r: '', s: ''};
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
[makerAmount, takerAmount, makerFeeAmount] = [ZeroEx.toBaseUnitAmount(new BigNumber(50), decimals),
|
[makerAmount, takerAmount, makerFeeAmount] = [ZeroEx.toBaseUnitAmount(new BigNumber(50), decimals),
|
||||||
ZeroEx.toBaseUnitAmount(new BigNumber(5), decimals),
|
ZeroEx.toBaseUnitAmount(new BigNumber(5), decimals),
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { DoneCallback } from '../../src/types';
|
import {DoneCallback} from '../../src/types';
|
||||||
|
|
||||||
export const reportCallbackErrors = (done: DoneCallback) => {
|
export const reportCallbackErrors = (done: DoneCallback) => {
|
||||||
return (f: (...args: any[]) => void) => {
|
return (f: (...args: any[]) => void) => {
|
||||||
|
@ -25,7 +25,7 @@ describe('Assertions', () => {
|
|||||||
'test',
|
'test',
|
||||||
42,
|
42,
|
||||||
false,
|
false,
|
||||||
{ random: 'test' },
|
{random: 'test'},
|
||||||
undefined,
|
undefined,
|
||||||
];
|
];
|
||||||
invalidInputs.forEach(input => expect(assert.isBigNumber.bind(assert, variableName, input)).to.throw());
|
invalidInputs.forEach(input => expect(assert.isBigNumber.bind(assert, variableName, input)).to.throw());
|
||||||
@ -43,7 +43,7 @@ describe('Assertions', () => {
|
|||||||
'test',
|
'test',
|
||||||
42,
|
42,
|
||||||
false,
|
false,
|
||||||
{ random: 'test' },
|
{random: 'test'},
|
||||||
];
|
];
|
||||||
invalidInputs.forEach(input => expect(assert.isUndefined.bind(assert, input, variableName)).to.throw());
|
invalidInputs.forEach(input => expect(assert.isUndefined.bind(assert, input, variableName)).to.throw());
|
||||||
});
|
});
|
||||||
@ -60,7 +60,7 @@ describe('Assertions', () => {
|
|||||||
const invalidInputs = [
|
const invalidInputs = [
|
||||||
42,
|
42,
|
||||||
false,
|
false,
|
||||||
{ random: 'test' },
|
{random: 'test'},
|
||||||
undefined,
|
undefined,
|
||||||
new BigNumber(45),
|
new BigNumber(45),
|
||||||
];
|
];
|
||||||
@ -79,7 +79,7 @@ describe('Assertions', () => {
|
|||||||
const invalidInputs = [
|
const invalidInputs = [
|
||||||
42,
|
42,
|
||||||
false,
|
false,
|
||||||
{ random: 'test' },
|
{random: 'test'},
|
||||||
undefined,
|
undefined,
|
||||||
new BigNumber(45),
|
new BigNumber(45),
|
||||||
];
|
];
|
||||||
@ -98,7 +98,7 @@ describe('Assertions', () => {
|
|||||||
const invalidInputs = [
|
const invalidInputs = [
|
||||||
42,
|
42,
|
||||||
false,
|
false,
|
||||||
{ random: 'test' },
|
{random: 'test'},
|
||||||
undefined,
|
undefined,
|
||||||
new BigNumber(45),
|
new BigNumber(45),
|
||||||
'0x61a3ed31B43c8780e905a260a35faYfEc527be7516aa11c0256729b5b351bc33',
|
'0x61a3ed31B43c8780e905a260a35faYfEc527be7516aa11c0256729b5b351bc33',
|
||||||
@ -121,7 +121,7 @@ describe('Assertions', () => {
|
|||||||
const invalidInputs = [
|
const invalidInputs = [
|
||||||
42,
|
42,
|
||||||
false,
|
false,
|
||||||
{ random: 'test' },
|
{random: 'test'},
|
||||||
undefined,
|
undefined,
|
||||||
new BigNumber(45),
|
new BigNumber(45),
|
||||||
'0x6FFFd0ae3f7d88c9b4925323f54c6e4b2918c5fd',
|
'0x6FFFd0ae3f7d88c9b4925323f54c6e4b2918c5fd',
|
||||||
@ -150,7 +150,7 @@ describe('Assertions', () => {
|
|||||||
const invalidInputs = [
|
const invalidInputs = [
|
||||||
42,
|
42,
|
||||||
false,
|
false,
|
||||||
{ random: 'test' },
|
{random: 'test'},
|
||||||
undefined,
|
undefined,
|
||||||
new BigNumber(45),
|
new BigNumber(45),
|
||||||
];
|
];
|
||||||
@ -192,7 +192,7 @@ describe('Assertions', () => {
|
|||||||
it('should throw for invalid input', () => {
|
it('should throw for invalid input', () => {
|
||||||
const invalidInputs = [
|
const invalidInputs = [
|
||||||
false,
|
false,
|
||||||
{ random: 'test' },
|
{random: 'test'},
|
||||||
undefined,
|
undefined,
|
||||||
new BigNumber(45),
|
new BigNumber(45),
|
||||||
];
|
];
|
||||||
@ -210,7 +210,7 @@ describe('Assertions', () => {
|
|||||||
it('should throw for invalid input', () => {
|
it('should throw for invalid input', () => {
|
||||||
const invalidInputs = [
|
const invalidInputs = [
|
||||||
42,
|
42,
|
||||||
{ random: 'test' },
|
{random: 'test'},
|
||||||
undefined,
|
undefined,
|
||||||
new BigNumber(45),
|
new BigNumber(45),
|
||||||
];
|
];
|
||||||
@ -220,8 +220,8 @@ describe('Assertions', () => {
|
|||||||
describe('#isWeb3Provider', () => {
|
describe('#isWeb3Provider', () => {
|
||||||
it('should not throw for valid input', () => {
|
it('should not throw for valid input', () => {
|
||||||
const validInputs = [
|
const validInputs = [
|
||||||
{ send: () => 45 },
|
{send: () => 45},
|
||||||
{ sendAsync: () => 45 },
|
{sendAsync: () => 45},
|
||||||
];
|
];
|
||||||
validInputs.forEach(input =>
|
validInputs.forEach(input =>
|
||||||
expect(assert.isWeb3Provider.bind(assert, variableName, input)).to.not.throw(),
|
expect(assert.isWeb3Provider.bind(assert, variableName, input)).to.not.throw(),
|
||||||
@ -230,7 +230,7 @@ describe('Assertions', () => {
|
|||||||
it('should throw for invalid input', () => {
|
it('should throw for invalid input', () => {
|
||||||
const invalidInputs = [
|
const invalidInputs = [
|
||||||
42,
|
42,
|
||||||
{ random: 'test' },
|
{random: 'test'},
|
||||||
undefined,
|
undefined,
|
||||||
new BigNumber(45),
|
new BigNumber(45),
|
||||||
];
|
];
|
||||||
@ -253,7 +253,7 @@ describe('Assertions', () => {
|
|||||||
it('should throw for invalid input', () => {
|
it('should throw for invalid input', () => {
|
||||||
const invalidInputs = [
|
const invalidInputs = [
|
||||||
42,
|
42,
|
||||||
{ random: 'test' },
|
{random: 'test'},
|
||||||
undefined,
|
undefined,
|
||||||
new BigNumber(45),
|
new BigNumber(45),
|
||||||
];
|
];
|
||||||
@ -277,7 +277,7 @@ describe('Assertions', () => {
|
|||||||
it('should throw for invalid input', () => {
|
it('should throw for invalid input', () => {
|
||||||
const invalidInputs = [
|
const invalidInputs = [
|
||||||
42,
|
42,
|
||||||
{ random: 'test' },
|
{random: 'test'},
|
||||||
undefined,
|
undefined,
|
||||||
new BigNumber(45),
|
new BigNumber(45),
|
||||||
'ws://www.api.example-relayer.net',
|
'ws://www.api.example-relayer.net',
|
||||||
@ -309,7 +309,7 @@ describe('Assertions', () => {
|
|||||||
it('should throw for invalid input', () => {
|
it('should throw for invalid input', () => {
|
||||||
const invalidInputs = [
|
const invalidInputs = [
|
||||||
42,
|
42,
|
||||||
{ random: 'test' },
|
{random: 'test'},
|
||||||
undefined,
|
undefined,
|
||||||
new BigNumber(45),
|
new BigNumber(45),
|
||||||
'www.google.com',
|
'www.google.com',
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { DoneCallback } from '../../src/types';
|
import {DoneCallback} from '../../src/types';
|
||||||
|
|
||||||
export const reportCallbackErrors = (done: DoneCallback) => {
|
export const reportCallbackErrors = (done: DoneCallback) => {
|
||||||
return (f: (...args: any[]) => void) => {
|
return (f: (...args: any[]) => void) => {
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
"@types/lodash": "^4.14.86",
|
"@types/lodash": "^4.14.86",
|
||||||
"shx": "^0.2.2",
|
"shx": "^0.2.2",
|
||||||
"tslint": "5.8.0",
|
"tslint": "5.8.0",
|
||||||
|
"tslint-eslint-rules": "^4.1.1",
|
||||||
"typescript": "~2.6.1"
|
"typescript": "~2.6.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
"extends": [
|
"extends": [
|
||||||
"tslint:latest",
|
"tslint:latest",
|
||||||
"tslint-react"
|
"tslint-react",
|
||||||
|
"tslint-eslint-rules"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"adjacent-overload-signatures": true,
|
"adjacent-overload-signatures": true,
|
||||||
@ -54,6 +55,7 @@
|
|||||||
"no-unused-variable": [true, {"ignore-pattern": "^_\\d*"}],
|
"no-unused-variable": [true, {"ignore-pattern": "^_\\d*"}],
|
||||||
"no-implicit-dependencies": [true, "dev"],
|
"no-implicit-dependencies": [true, "dev"],
|
||||||
"number-literal-format": true,
|
"number-literal-format": true,
|
||||||
|
"object-curly-spacing": [true, "never"],
|
||||||
"object-literal-sort-keys": false,
|
"object-literal-sort-keys": false,
|
||||||
"ordered-imports": [
|
"ordered-imports": [
|
||||||
true,
|
true,
|
||||||
|
@ -576,7 +576,7 @@ export class TokenBalances extends React.Component<TokenBalancesProps, TokenBala
|
|||||||
private renderDharmaLoanFrame() {
|
private renderDharmaLoanFrame() {
|
||||||
if (utils.isUserOnMobile()) {
|
if (utils.isUserOnMobile()) {
|
||||||
return (
|
return (
|
||||||
<h4 style={{ textAlign: 'center' }}>
|
<h4 style={{textAlign: 'center'}}>
|
||||||
We apologize -- Dharma loan requests are not available on
|
We apologize -- Dharma loan requests are not available on
|
||||||
mobile yet. Please try again through your desktop browser.
|
mobile yet. Please try again through your desktop browser.
|
||||||
</h4>
|
</h4>
|
||||||
|
@ -124,7 +124,7 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
|
|||||||
className="text-decoration-none"
|
className="text-decoration-none"
|
||||||
href={constants.GITHUB_URL}
|
href={constants.GITHUB_URL}
|
||||||
>
|
>
|
||||||
<MenuItem style={{ fontSize: styles.menuItem.fontSize }} primaryText="GitHub" />
|
<MenuItem style={{fontSize: styles.menuItem.fontSize}} primaryText="GitHub" />
|
||||||
</a>,
|
</a>,
|
||||||
<a
|
<a
|
||||||
key="subMenuItem-whitePaper"
|
key="subMenuItem-whitePaper"
|
||||||
|
27
yarn.lock
27
yarn.lock
@ -2753,6 +2753,13 @@ dns-txt@^2.0.2:
|
|||||||
dependencies:
|
dependencies:
|
||||||
buffer-indexof "^1.0.0"
|
buffer-indexof "^1.0.0"
|
||||||
|
|
||||||
|
doctrine@^0.7.2:
|
||||||
|
version "0.7.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-0.7.2.tgz#7cb860359ba3be90e040b26b729ce4bfa654c523"
|
||||||
|
dependencies:
|
||||||
|
esutils "^1.1.6"
|
||||||
|
isarray "0.0.1"
|
||||||
|
|
||||||
dom-helpers@^3.2.0:
|
dom-helpers@^3.2.0:
|
||||||
version "3.2.1"
|
version "3.2.1"
|
||||||
resolved "https://registry.yarnpkg.com/dom-helpers/-/dom-helpers-3.2.1.tgz#3203e07fed217bd1f424b019735582fc37b2825a"
|
resolved "https://registry.yarnpkg.com/dom-helpers/-/dom-helpers-3.2.1.tgz#3203e07fed217bd1f424b019735582fc37b2825a"
|
||||||
@ -3017,6 +3024,10 @@ estraverse@^4.1.0, estraverse@^4.1.1:
|
|||||||
version "4.2.0"
|
version "4.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13"
|
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13"
|
||||||
|
|
||||||
|
esutils@^1.1.6:
|
||||||
|
version "1.1.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/esutils/-/esutils-1.1.6.tgz#c01ccaa9ae4b897c6d0c3e210ae52f3c7a844375"
|
||||||
|
|
||||||
esutils@^2.0.2:
|
esutils@^2.0.2:
|
||||||
version "2.0.2"
|
version "2.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"
|
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"
|
||||||
@ -8908,6 +8919,10 @@ truffle@^4.0.1:
|
|||||||
original-require "^1.0.1"
|
original-require "^1.0.1"
|
||||||
solc "0.4.18"
|
solc "0.4.18"
|
||||||
|
|
||||||
|
tslib@^1.0.0:
|
||||||
|
version "1.8.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.8.1.tgz#6946af2d1d651a7b1863b531d6e5afa41aa44eac"
|
||||||
|
|
||||||
tslib@^1.7.1:
|
tslib@^1.7.1:
|
||||||
version "1.8.0"
|
version "1.8.0"
|
||||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.8.0.tgz#dc604ebad64bcbf696d613da6c954aa0e7ea1eb6"
|
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.8.0.tgz#dc604ebad64bcbf696d613da6c954aa0e7ea1eb6"
|
||||||
@ -8918,6 +8933,14 @@ tslint-config-0xproject@^0.0.2:
|
|||||||
dependencies:
|
dependencies:
|
||||||
tslint-react "^3.0.0"
|
tslint-react "^3.0.0"
|
||||||
|
|
||||||
|
tslint-eslint-rules@^4.1.1:
|
||||||
|
version "4.1.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/tslint-eslint-rules/-/tslint-eslint-rules-4.1.1.tgz#7c30e7882f26bc276bff91d2384975c69daf88ba"
|
||||||
|
dependencies:
|
||||||
|
doctrine "^0.7.2"
|
||||||
|
tslib "^1.0.0"
|
||||||
|
tsutils "^1.4.0"
|
||||||
|
|
||||||
tslint-react@^3.0.0, tslint-react@^3.2.0:
|
tslint-react@^3.0.0, tslint-react@^3.2.0:
|
||||||
version "3.2.0"
|
version "3.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/tslint-react/-/tslint-react-3.2.0.tgz#851fb505201c63d0343c51726e6364f7e9ad2e99"
|
resolved "https://registry.yarnpkg.com/tslint-react/-/tslint-react-3.2.0.tgz#851fb505201c63d0343c51726e6364f7e9ad2e99"
|
||||||
@ -8940,6 +8963,10 @@ tslint@5.8.0:
|
|||||||
tslib "^1.7.1"
|
tslib "^1.7.1"
|
||||||
tsutils "^2.12.1"
|
tsutils "^2.12.1"
|
||||||
|
|
||||||
|
tsutils@^1.4.0:
|
||||||
|
version "1.9.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-1.9.1.tgz#b9f9ab44e55af9681831d5f28d0aeeaf5c750cb0"
|
||||||
|
|
||||||
tsutils@^2.12.1, tsutils@^2.8.0:
|
tsutils@^2.12.1, tsutils@^2.8.0:
|
||||||
version "2.12.2"
|
version "2.12.2"
|
||||||
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.12.2.tgz#ad58a4865d17ec3ddb6631b6ca53be14a5656ff3"
|
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.12.2.tgz#ad58a4865d17ec3ddb6631b6ca53be14a5656ff3"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user