Skip to content

Commit

Permalink
Merge pull request #7 from popomore/stack-url
Browse files Browse the repository at this point in the history
fix: fix the filepath of the stack
  • Loading branch information
twada authored Apr 24, 2017
2 parents 3349098 + 2b2db6e commit 4904d21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ function espowerLoader (options) {
if (minimatch(source, pattern) && pathToMap[source]) {
return {
map: pathToMap[source],
url: source
};
}
return null;
Expand Down
4 changes: 2 additions & 2 deletions test/tobe_instrumented/tobe_instrumented_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var assert = require('assert');
var expect = require('expect.js');

describe('power-assert message', function () {

it('Nested CallExpression with BinaryExpression: assert((three * (seven * ten)) === three);', function () {
var one = 1, two = 2, three = 3, seven = 7, ten = 10;
this.expectPowerAssertMessage(function () {
Expand Down Expand Up @@ -41,7 +41,7 @@ describe('power-assert message', function () {
expect(e.message.split('\n').slice(2, -1)).to.eql(expectedDiagram.map(function (line) {
return line;
}));
expect(e.stack).to.match(new RegExp("test\/tobe_instrumented\/tobe_instrumented_test.js:" + expectedLine + ":" + expectedColumn + "\n"));
expect(e.stack).to.match(new RegExp("at test\/tobe_instrumented\/tobe_instrumented_test.js:" + expectedLine + ":" + expectedColumn + "\n"));
expect(e.message).to.match(new RegExp("\\s*\\#\\s*test\/tobe_instrumented\/tobe_instrumented_test.js:" + expectedLine + "\n"));
return;
}
Expand Down

0 comments on commit 4904d21

Please sign in to comment.