aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-cov/test/collect_coverage_entries_test.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-17 20:07:44 +0800
committerFabio Berger <me@fabioberger.com>2018-05-17 20:07:44 +0800
commitcf7967e6296aac0a328143e92a22c5682541a576 (patch)
treef413e35218ec48f58d4cb0fbe35bde5643358614 /packages/sol-cov/test/collect_coverage_entries_test.ts
parent0eacbac8f69bf3b5f03029aae338f63462ca3154 (diff)
downloaddexon-0x-contracts-cf7967e6296aac0a328143e92a22c5682541a576.tar.gz
dexon-0x-contracts-cf7967e6296aac0a328143e92a22c5682541a576.tar.zst
dexon-0x-contracts-cf7967e6296aac0a328143e92a22c5682541a576.zip
Disable magic number rule in more places where it isn't helping code readability
Diffstat (limited to 'packages/sol-cov/test/collect_coverage_entries_test.ts')
-rw-r--r--packages/sol-cov/test/collect_coverage_entries_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/sol-cov/test/collect_coverage_entries_test.ts b/packages/sol-cov/test/collect_coverage_entries_test.ts
index f60a57cb7..4263ed197 100644
--- a/packages/sol-cov/test/collect_coverage_entries_test.ts
+++ b/packages/sol-cov/test/collect_coverage_entries_test.ts
@@ -39,15 +39,15 @@ describe('Collect coverage entries', () => {
const coverageEntries = collectCoverageEntries(simpleStorageContract);
const fnIds = _.keys(coverageEntries.fnMap);
expect(coverageEntries.fnMap[fnIds[0]].name).to.be.equal('set');
- const setExpectedLineNumber = 5;
- expect(coverageEntries.fnMap[fnIds[0]].line).to.be.equal(setExpectedLineNumber);
+ // tslint:disable-next-line:custom-no-magic-numbers
+ expect(coverageEntries.fnMap[fnIds[0]].line).to.be.equal(5);
const setFunction = `function set(uint x) {
storedData = x;
}`;
expect(getRange(simpleStorageContract, coverageEntries.fnMap[fnIds[0]].loc)).to.be.equal(setFunction);
expect(coverageEntries.fnMap[fnIds[1]].name).to.be.equal('get');
- const getExpectedLineNumber = 8;
- expect(coverageEntries.fnMap[fnIds[1]].line).to.be.equal(getExpectedLineNumber);
+ // tslint:disable-next-line:custom-no-magic-numbers
+ expect(coverageEntries.fnMap[fnIds[1]].line).to.be.equal(8);
const getFunction = `function get() constant returns (uint retVal) {
return storedData;
}`;