aboutsummaryrefslogtreecommitdiffstats
path: root/test/exchange_wrapper_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-01 17:46:57 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-01 17:46:57 +0800
commitdbb30aa1dd5db685cf9fea0e23029a77a66290da (patch)
tree7b50ef5e064bff32d6c3c152f2cd891f5f9745db /test/exchange_wrapper_test.ts
parentde3a2ff6726351b9d8400a6757a9ce2a18c3c3f6 (diff)
downloaddexon-sol-tools-dbb30aa1dd5db685cf9fea0e23029a77a66290da.tar
dexon-sol-tools-dbb30aa1dd5db685cf9fea0e23029a77a66290da.tar.gz
dexon-sol-tools-dbb30aa1dd5db685cf9fea0e23029a77a66290da.tar.bz2
dexon-sol-tools-dbb30aa1dd5db685cf9fea0e23029a77a66290da.tar.lz
dexon-sol-tools-dbb30aa1dd5db685cf9fea0e23029a77a66290da.tar.xz
dexon-sol-tools-dbb30aa1dd5db685cf9fea0e23029a77a66290da.tar.zst
dexon-sol-tools-dbb30aa1dd5db685cf9fea0e23029a77a66290da.zip
Fix linter errors
Diffstat (limited to 'test/exchange_wrapper_test.ts')
-rw-r--r--test/exchange_wrapper_test.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts
index c0d5b292b..ca040ab28 100644
--- a/test/exchange_wrapper_test.ts
+++ b/test/exchange_wrapper_test.ts
@@ -51,7 +51,7 @@ describe('ExchangeWrapper', () => {
s: signature.s,
};
expect(zeroEx.exchange.isValidSignatureAsync(dataHex, malformedSignature, address))
- .to.be.rejected;
+ .to.be.rejected();
});
it('r lacks 0x prefix', () => {
const malformedR = signature.r.replace('0x', '');
@@ -61,7 +61,7 @@ describe('ExchangeWrapper', () => {
s: signature.s,
};
expect(zeroEx.exchange.isValidSignatureAsync(dataHex, malformedSignature, address))
- .to.be.rejected;
+ .to.be.rejected();
});
it('r is too short', () => {
const malformedR = signature.r.substr(10);
@@ -71,7 +71,7 @@ describe('ExchangeWrapper', () => {
s: signature.s.replace('0', 'z'),
};
expect(zeroEx.exchange.isValidSignatureAsync(dataHex, malformedSignature, address))
- .to.be.rejected;
+ .to.be.rejected();
});
it('s is not hex', () => {
const malformedS = signature.s.replace('0', 'z');
@@ -81,26 +81,26 @@ describe('ExchangeWrapper', () => {
s: malformedS,
};
expect(zeroEx.exchange.isValidSignatureAsync(dataHex, malformedSignature, address))
- .to.be.rejected;
+ .to.be.rejected();
});
});
it('should return false if the data doesn\'t pertain to the signature & address', async () => {
const isValid = await zeroEx.exchange.isValidSignatureAsync('0x0', signature, address);
- expect(isValid).to.be.false;
+ expect(isValid).to.be.false();
});
it('should return false if the address doesn\'t pertain to the signature & dataHex', async () => {
const validUnrelatedAddress = '0x8b0292B11a196601eD2ce54B665CaFEca0347D42';
const isValid = await zeroEx.exchange.isValidSignatureAsync(dataHex, signature, validUnrelatedAddress);
- expect(isValid).to.be.false;
+ expect(isValid).to.be.false();
});
it('should return false if the signature doesn\'t pertain to the dataHex & address', async () => {
const wrongSignature = {...signature, v: 28};
const isValid = await zeroEx.exchange.isValidSignatureAsync(dataHex, wrongSignature, address);
- expect(isValid).to.be.false;
+ expect(isValid).to.be.false();
});
it('should return true if the signature does pertain to the dataHex & address', async () => {
const isValid = await zeroEx.exchange.isValidSignatureAsync(dataHex, signature, address);
- expect(isValid).to.be.true;
+ expect(isValid).to.be.true();
});
});
describe('#fillOrderAsync', () => {