export function test ( { assert , preprocessed , js } ) { assert . equal ( preprocessed . error , undefined ) ; [ [ js , 'foo.js' , 'answer = 42;' , 4 ] , [ js , 'bar.js' , 'console.log(answer);' , 0 ] , [ js , 'foo2.js' , 'answer2 = 84;' , 4 ] , [ js , 'bar2.js' , 'console.log(answer2);' , 0 ] ] . forEach ( ( [ where , sourcefile , content , column ] ) => { assert . deepEqual ( where . mapConsumer . originalPositionFor ( where . locate_1 ( content ) ) , { source : sourcefile , name : null , line : 1 , column } , `failed to locate "${ content }" from "${ sourcefile }"` ) ; } ) ; }