Skip to content

Commit 2dc8452

Browse files
committed
revert safe options
1 parent 7468cf1 commit 2dc8452

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

test/jest/helpers.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ class TestContext {
160160
* @param {any} config
161161
* @returns {Promise.<CommandOutput>}
162162
*/
163-
runEask(command, config, safe = false) {
164-
return this.run(this.easkCommand + " " + command, config, safe);
163+
runEask(command, config) {
164+
return this.run(this.easkCommand + " " + command, config);
165165
}
166166

167167
/**
@@ -173,7 +173,7 @@ class TestContext {
173173
* @param {any} config
174174
* @returns {Promise.<CommandOutput>}
175175
*/
176-
run(command, config, safe = false) {
176+
run(command, config) {
177177
return exec(command, {
178178
cwd: this.cwd,
179179
signal: this.controller.signal,
@@ -191,9 +191,6 @@ class TestContext {
191191
return new CommandOutput(obj, this.cwd);
192192
})
193193
.catch((err) => {
194-
if (safe)
195-
return this.errorToCommandOutput(err);
196-
197194
if (!err.code)
198195
err.message += "\nexec: TIMEOUT";
199196

test/jest/local.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// Notice, below we clone a random package (repo) that uses Eask as the
55
// dependencies management tool.
66

7+
const cmp = require('semver-compare');
78
const { emacsVersion, TestContext } = require("./helpers");
89

910
describe("local", () => {

0 commit comments

Comments
 (0)