aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-tracing-utils/test/source_maps_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-01-15 21:45:02 +0800
committerGitHub <noreply@github.com>2019-01-15 21:45:02 +0800
commit18084588ea9fa724d6e32c9a49c79d49f189ba7c (patch)
tree7944152430a9687e7e63db4011bacaf2fa3aebe3 /packages/sol-tracing-utils/test/source_maps_test.ts
parent16a2cf7be68605def2824de4f5c22f0154c2e6ad (diff)
parent64d99dc07cc82c7cc2917871596b46985f1d709f (diff)
downloaddexon-0x-contracts-18084588ea9fa724d6e32c9a49c79d49f189ba7c.tar
dexon-0x-contracts-18084588ea9fa724d6e32c9a49c79d49f189ba7c.tar.gz
dexon-0x-contracts-18084588ea9fa724d6e32c9a49c79d49f189ba7c.tar.bz2
dexon-0x-contracts-18084588ea9fa724d6e32c9a49c79d49f189ba7c.tar.lz
dexon-0x-contracts-18084588ea9fa724d6e32c9a49c79d49f189ba7c.tar.xz
dexon-0x-contracts-18084588ea9fa724d6e32c9a49c79d49f189ba7c.tar.zst
dexon-0x-contracts-18084588ea9fa724d6e32c9a49c79d49f189ba7c.zip
Merge pull request #1498 from 0xProject/fix/sol-cov
Sol tracing fixes
Diffstat (limited to 'packages/sol-tracing-utils/test/source_maps_test.ts')
-rw-r--r--packages/sol-tracing-utils/test/source_maps_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/sol-tracing-utils/test/source_maps_test.ts b/packages/sol-tracing-utils/test/source_maps_test.ts
index 5820bedd7..330a6a3e1 100644
--- a/packages/sol-tracing-utils/test/source_maps_test.ts
+++ b/packages/sol-tracing-utils/test/source_maps_test.ts
@@ -4,7 +4,7 @@ import * as _ from 'lodash';
import 'mocha';
import * as path from 'path';
-import { getLocationByOffset, parseSourceMap } from '../src/source_maps';
+import { getOffsetToLocation, parseSourceMap } from '../src/source_maps';
const expect = chai.expect;
@@ -15,7 +15,7 @@ const simplestContract = fs.readFileSync(simplestContractFileName).toString();
describe('source maps', () => {
describe('#getLocationByOffset', () => {
it('correctly computes location by offset', () => {
- const locationByOffset = getLocationByOffset(simplestContract);
+ const offsetToLocation = getOffsetToLocation(simplestContract);
const expectedLocationByOffset = {
'0': { line: 1, column: 0 },
'1': { line: 1, column: 1 },
@@ -41,7 +41,7 @@ describe('source maps', () => {
'21': { line: 2, column: 1 },
'22': { line: 3, column: 0 },
};
- expect(locationByOffset).to.be.deep.equal(expectedLocationByOffset);
+ expect(offsetToLocation).to.be.deep.equal(expectedLocationByOffset);
});
});
describe('#parseSourceMap', () => {