@@ -37,6 +37,16 @@ const MODULES = {
37
37
module1 : { model : 'module1' } ,
38
38
module2 : { model : 'module2' } ,
39
39
}
40
+ const RUNTIME_PARAMETERS = [
41
+ {
42
+ displayName : 'test param' ,
43
+ variableName : 'test_param' ,
44
+ description : 'Mock boolean parameter' ,
45
+ type : 'bool' ,
46
+ default : true ,
47
+ value : true ,
48
+ } ,
49
+ ]
40
50
const FORMATTED_MODULES = 'module1,module2'
41
51
const STORED_PROTOCOL_ANALYSIS = {
42
52
config : { protocolType : 'json' , schemaVersion : 1.11 } ,
@@ -49,11 +59,13 @@ const STORED_PROTOCOL_ANALYSIS = {
49
59
robotType : 'OT-2 Standard' ,
50
60
pipettes : PIPETTES ,
51
61
modules : MODULES ,
62
+ runTimeParameters : RUNTIME_PARAMETERS ,
52
63
}
53
64
const ROBOT_PROTOCOL_ANALYSIS = {
54
65
robotType : 'OT-2 Standard' ,
55
66
pipettes : PIPETTES ,
56
67
modules : MODULES ,
68
+ runTimeParameters : RUNTIME_PARAMETERS ,
57
69
}
58
70
59
71
describe ( 'useProtocolAnalysisErrors hook' , ( ) => {
@@ -126,6 +138,8 @@ describe('useProtocolAnalysisErrors hook', () => {
126
138
protocolAppName : 'Python API' ,
127
139
protocolAppVersion : 2.3 ,
128
140
protocolAuthor : 'hashedString' ,
141
+ protocolHasRunTimeParameterCustomValues : false ,
142
+ protocolHasRunTimeParameters : true ,
129
143
protocolName : 'robot protocol' ,
130
144
protocolSource : 'robot protocol source' ,
131
145
protocolText : 'hashedString' ,
@@ -156,6 +170,8 @@ describe('useProtocolAnalysisErrors hook', () => {
156
170
protocolAppVersion : '1.1' ,
157
171
protocolAuthor : 'hashedString' ,
158
172
protocolName : 'stored protocol' ,
173
+ protocolHasRunTimeParameterCustomValues : false ,
174
+ protocolHasRunTimeParameters : true ,
159
175
protocolSource : 'stored protocol source' ,
160
176
protocolText : 'hashedString' ,
161
177
protocolType : 'json' ,
0 commit comments