diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-15 22:33:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-15 22:33:55 +0800 |
commit | 9932240a4d7cfc877be322a65c70f6bdf73d7ca7 (patch) | |
tree | 939109f2916554b2d6d6f429e600c56380d98e16 /packages/sol-tracing-utils/test/source_maps_test.ts | |
parent | 91b57793c2b8a0bc1209dd174c6d8b946827aa7c (diff) | |
parent | f570f80674c22f69712c45e8e3c48e948b51f357 (diff) | |
download | dexon-0x-contracts-9932240a4d7cfc877be322a65c70f6bdf73d7ca7.tar dexon-0x-contracts-9932240a4d7cfc877be322a65c70f6bdf73d7ca7.tar.gz dexon-0x-contracts-9932240a4d7cfc877be322a65c70f6bdf73d7ca7.tar.bz2 dexon-0x-contracts-9932240a4d7cfc877be322a65c70f6bdf73d7ca7.tar.lz dexon-0x-contracts-9932240a4d7cfc877be322a65c70f6bdf73d7ca7.tar.xz dexon-0x-contracts-9932240a4d7cfc877be322a65c70f6bdf73d7ca7.tar.zst dexon-0x-contracts-9932240a4d7cfc877be322a65c70f6bdf73d7ca7.zip |
Merge branch 'development' into feature/new-ganache
Diffstat (limited to 'packages/sol-tracing-utils/test/source_maps_test.ts')
-rw-r--r-- | packages/sol-tracing-utils/test/source_maps_test.ts | 6 |
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', () => { |