We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e42076 commit 61bddfaCopy full SHA for 61bddfa
cli/src/util/__tests__/runSshCommand.test.js
@@ -31,11 +31,11 @@ describe('runSshCommand', () => {
31
expect(returned).toBe(stdout);
32
});
33
34
- it('should throw first line of stderr on error', async () => {
35
- const stdErrFirstLine = 'mocked stderr content';
+ it('should throw stderr on error', async () => {
+ const stderrContent = 'mocked stderr content\nanother second line';
36
mockedExeca.mockImplementationOnce(async () => {
37
throw {
38
- stderr: `${stdErrFirstLine}\nanother second line`,
+ stderr: stderrContent,
39
};
40
41
try {
@@ -44,7 +44,7 @@ describe('runSshCommand', () => {
44
identity: './identity/path',
45
46
} catch (err) {
47
- expect(err).toBe(stdErrFirstLine);
+ expect(err).toBe(stderrContent);
48
}
49
50
0 commit comments