diff --git a/test/test.js b/test/test.js index 8c91504..56bd2b3 100644 --- a/test/test.js +++ b/test/test.js @@ -154,7 +154,7 @@ describe( 'rollup-plugin-commonjs', () => { generatedLoc = locator( 'log' ); loc = smc.originalPositionFor( generatedLoc ); // log assert.equal( loc.source, 'main.js' ); - assert.equal( loc.line, 2 ); + assert.equal( loc.line, 3 ); assert.equal( loc.column, 8 ); }); @@ -540,7 +540,7 @@ describe( 'rollup-plugin-commonjs', () => { plugins: [ commonjs() ] }); } catch (error) { - assert.equal( error.frame, '1: export const foo = 2,\n ^' ); + assert.equal( error.frame, '1: \n2: export const foo = 2,\n ^' ); } });