mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
18 lines
394 B
JavaScript
18 lines
394 B
JavaScript
export function test ({ assert, smcCss, locateInSource, locateInGeneratedCss }) {
|
|
const expected = locateInSource( '.foo' );
|
|
|
|
const loc = locateInGeneratedCss( '.foo' );
|
|
|
|
const actual = smcCss.originalPositionFor({
|
|
line: loc.line + 1,
|
|
column: loc.column
|
|
});
|
|
|
|
assert.deepEqual( actual, {
|
|
source: 'input.html',
|
|
name: null,
|
|
line: expected.line + 1,
|
|
column: expected.column
|
|
});
|
|
}
|