Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
For some reason there's additional new lines in some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi authored and Daniel Cohen Gindi committed Jul 25, 2018
1 parent 6be0c4e commit 4184389
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Expand Up @@ -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 );
});

Expand Down Expand Up @@ -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 ^' );
}
});

Expand Down

0 comments on commit 4184389

Please sign in to comment.