Skip to content

Commit

Permalink
Added test for root Path concatenation fix #79
Browse files Browse the repository at this point in the history
  • Loading branch information
riju91 committed Jan 9, 2018
1 parent 1689fff commit 42b4824
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/execution/outputChannel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ suite('Output Channel', () => {
done();
});

test('should not change implementation path from relative to absolute if it is already absolute', (done) => {
var chan = new MockVSOutputChannel();
var outputChannel = new OutputChannel(chan, "");
outputChannel.appendOutBuf(" at Object.<anonymous> (" + path.join(vscode.workspace.rootPath,"tests", "step_implementation.js:24:10") +")\n");

assert.equal(chan.read(), " at Object.<anonymous> ("+ path.join(vscode.workspace.rootPath,"tests", "step_implementation.js:24:10)"));
done();
});

test('should convert implementation path from relative to absolute for lamda methods', (done) => {
var chan = new MockVSOutputChannel();
var outputChannel = new OutputChannel(chan, "");
Expand Down

0 comments on commit 42b4824

Please sign in to comment.