mirror of https://github.com/sveltejs/svelte
parent
1c81f85c11
commit
2123071dc7
@ -1,18 +1,18 @@
|
||||
export function test({ assert, smc, locateInSource, locateInGenerated }) {
|
||||
const expected = locateInSource( 'potato' );
|
||||
const expected = locateInSource('potato');
|
||||
|
||||
let start;
|
||||
|
||||
start = locateInGenerated( 'potato' );
|
||||
start = locateInGenerated( 'potato', start.character + 1 );
|
||||
start = locateInGenerated( 'potato', start.character + 1 ); // we need the third instance of 'potato'
|
||||
start = locateInGenerated('potato');
|
||||
start = locateInGenerated('potato', start.character + 1);
|
||||
start = locateInGenerated('potato', start.character + 1); // we need the third instance of 'potato'
|
||||
|
||||
const actual = smc.originalPositionFor({
|
||||
line: start.line + 1,
|
||||
column: start.column
|
||||
});
|
||||
|
||||
assert.deepEqual( actual, {
|
||||
assert.deepEqual(actual, {
|
||||
source: 'input.html',
|
||||
name: null,
|
||||
line: expected.line + 1,
|
Loading…
Reference in new issue