From da3f751e3c0c616cf63b436f359e54b3a6960278 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 17 Mar 2017 13:58:49 -0400 Subject: [PATCH] fix test --- .../samples/binding-shorthand/test.js | 17 ++--------------- test/sourcemaps/samples/binding/solox | 0 2 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 test/sourcemaps/samples/binding/solox diff --git a/test/sourcemaps/samples/binding-shorthand/test.js b/test/sourcemaps/samples/binding-shorthand/test.js index 566b5467a5..8aa8c050a9 100644 --- a/test/sourcemaps/samples/binding-shorthand/test.js +++ b/test/sourcemaps/samples/binding-shorthand/test.js @@ -2,25 +2,12 @@ export function test ({ assert, smc, locateInSource, locateInGenerated }) { const expected = locateInSource( 'potato' ); let loc; - let actual; loc = locateInGenerated( 'potato' ); - - actual = smc.originalPositionFor({ - line: loc.line + 1, - column: loc.column - }); - - assert.deepEqual( actual, { - source: 'input.html', - name: null, - line: expected.line + 1, - column: expected.column - }); - loc = locateInGenerated( 'potato', loc.character + 1 ); + loc = locateInGenerated( 'potato', loc.character + 1 ); // we need the third instance of 'potato' - actual = smc.originalPositionFor({ + const actual = smc.originalPositionFor({ line: loc.line + 1, column: loc.column }); diff --git a/test/sourcemaps/samples/binding/solox b/test/sourcemaps/samples/binding/solox deleted file mode 100644 index e69de29bb2..0000000000