File tree 1 file changed +8
-14
lines changed
1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,13 @@ import { createWorkflows } from "../src/workflows";
4
4
5
5
describe ( "units" , ( ) => {
6
6
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 ) ;
21
15
} ) ;
22
16
} ) ;
You can’t perform that action at this time.
0 commit comments