Skip to content

Commit 7cc192a

Browse files
committed
fix test
1 parent 5cd76be commit 7cc192a

File tree

1 file changed

+4
-3
lines changed
  • test/sourcemaps/samples/each-block

1 file changed

+4
-3
lines changed

test/sourcemaps/samples/each-block/test.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
export function test ({ assert, smc, locateInSource, locateInGenerated }) {
2-
const expected = locateInSource( 'each' );
1+
export function test({ assert, code, smc, locateInSource, locateInGenerated }) {
2+
const startIndex = code.indexOf('create_main_fragment');
33

4-
const loc = locateInGenerated( 'length' );
4+
const expected = locateInSource('each');
5+
const loc = locateInGenerated('length', startIndex );
56

67
const actual = smc.originalPositionFor({
78
line: loc.line + 1,

0 commit comments

Comments
 (0)