@@ -2,11 +2,12 @@ import { createTestingPinia } from "@pinia/testing";
22import { mount } from "@vue/test-utils" ;
33import { PiniaVuePlugin , setActivePinia } from "pinia" ;
44import { getLocalVue } from "tests/jest/helpers" ;
5+ import { ref } from "vue" ;
56
67import { testDatatypesMapper } from "@/components/Datatypes/test_fixtures" ;
78import { useWorkflowStepStore } from "@/stores/workflowStepStore" ;
89
9- import { getUntypedWorkflowParameters } from "./modules/parameters " ;
10+ import { useLintData } from "./modules/useLinting " ;
1011
1112import Lint from "./Lint.vue" ;
1213
@@ -30,6 +31,8 @@ const steps = {
3031 } ,
3132 ] ,
3233 annotation : "" ,
34+ input_connections : null ,
35+ tool_state : null ,
3336 } ,
3437 1 : {
3538 id : 1 ,
@@ -72,6 +75,7 @@ const steps = {
7275 output_name : "output" ,
7376 } ,
7477 ] ,
78+ tool_state : null ,
7579 } ,
7680 2 : {
7781 id : 2 ,
@@ -80,8 +84,11 @@ const steps = {
8084 annotation : "" ,
8185 outpus : { } ,
8286 inputs : [ ] ,
87+ input_connections : null ,
88+ tool_state : null ,
8389 } ,
8490} ;
91+ const stepsRef = ref ( steps ) ;
8592
8693describe ( "Lint" , ( ) => {
8794 let wrapper ;
@@ -93,7 +100,7 @@ describe("Lint", () => {
93100
94101 wrapper = mount ( Lint , {
95102 propsData : {
96- untypedParameters : getUntypedWorkflowParameters ( steps ) ,
103+ lintData : useLintData ( ref ( "1" ) , stepsRef , ref ( testDatatypesMapper ) ) ,
97104 steps : steps ,
98105 annotation : "annotation" ,
99106 license : null ,
0 commit comments