Skip to content

Commit b29f510

Browse files
committed
chore: rmove try/catch in tests
1 parent 3ee5611 commit b29f510

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

tests/unit.test.js

+8-14
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,13 @@ import { createWorkflows } from "../src/workflows";
44

55
describe("units", () => {
66
it("can be cloned with new flowchartId", () => {
7-
try {
8-
const workflows = createWorkflows({});
9-
const exampleWorkflow = workflows[0];
10-
const exampleSubworkflow = exampleWorkflow.subworkflows[0];
11-
const exampleUnit = exampleSubworkflow.units[0];
12-
const exampleUnitClone = exampleUnit.clone();
13-
// eslint-disable-next-line no-unused-expressions
14-
expect(exampleUnitClone).to.exist;
15-
expect(exampleUnit.flowchartId).to.not.equal(exampleUnitClone.flowchartId);
16-
} catch (err) {
17-
console.log({
18-
error: err.error,
19-
});
20-
}
7+
const workflows = createWorkflows({});
8+
const exampleWorkflow = workflows[0];
9+
const exampleSubworkflow = exampleWorkflow.subworkflows[0];
10+
const exampleUnit = exampleSubworkflow.units[0];
11+
const exampleUnitClone = exampleUnit.clone();
12+
// eslint-disable-next-line no-unused-expressions
13+
expect(exampleUnitClone).to.exist;
14+
expect(exampleUnit.flowchartId).to.not.equal(exampleUnitClone.flowchartId);
2115
});
2216
});

0 commit comments

Comments
 (0)