Narrow diagnostics error assertions
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
ab5283618f
commit
edcebbdc0a
1 file changed
+3
@@ -292,6 +292,9 @@ describe("ProcessDiagnostics", () => {
|
||||
);
|
||||
|
||||
assert.equal(error._tag, "ProcessDiagnosticsQueryFailedError");
|
||||
if (error._tag !== "ProcessDiagnosticsQueryFailedError") {
|
||||
assert.fail(`Expected ProcessDiagnosticsQueryFailedError, got ${error._tag}`);
|
||||
}
|
||||
assert.equal(error.command, "ps");
|
||||
assert.equal(error.argCount, 2);
|
||||
assert.equal(error.cwd, process.cwd());
|
||||
|
||||
Reference in new issue
Block a user