Skip to content

Commit 077b348

Browse files
committed
update tests for new node relative path updates
1 parent 8f0c9ac commit 077b348

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/common/process/logger.unit.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ suite('ProcessLogger suite', () => {
111111
const options = { cwd: path.join('debug', 'path') };
112112
logger.logProcess(path.join('net', untildify('~'), 'test'), ['--foo', '--bar'], options);
113113

114-
sinon.assert.calledWithExactly(traceLogStub, `> ${path.join('net', '~', 'test')} --foo --bar`);
114+
sinon.assert.calledWithExactly(traceLogStub, `> ${path.join('.', 'net', '~', 'test')} --foo --bar`);
115115
sinon.assert.calledWithExactly(traceLogStub, `cwd: ${options.cwd}`);
116116
});
117117

@@ -125,7 +125,7 @@ suite('ProcessLogger suite', () => {
125125

126126
sinon.assert.calledWithExactly(
127127
traceLogStub,
128-
`> ${path.join('net', '~', 'test')} --foo ${path.join('~', 'boo')}`,
128+
`> ${path.join('.', 'net', '~', 'test')} --foo ${path.join('~', 'boo')}`,
129129
);
130130
sinon.assert.calledWithExactly(traceLogStub, `cwd: ${options.cwd}`);
131131
});
@@ -134,7 +134,7 @@ suite('ProcessLogger suite', () => {
134134
const options = { cwd: path.join('debug', 'path') };
135135
logger.logProcess(`"${path.join('net', untildify('~'), 'test')}" "--foo" "--bar"`, undefined, options);
136136

137-
sinon.assert.calledWithExactly(traceLogStub, `> "${path.join('net', '~', 'test')}" "--foo" "--bar"`);
137+
sinon.assert.calledWithExactly(traceLogStub, `> "${path.join('.', 'net', '~', 'test')}" "--foo" "--bar"`);
138138
sinon.assert.calledWithExactly(traceLogStub, `cwd: ${options.cwd}`);
139139
});
140140

0 commit comments

Comments
 (0)