Skip to content

Commit 2767459

Browse files
committed
test: fix snapshot
1 parent 7318023 commit 2767459

1 file changed

Lines changed: 91 additions & 49 deletions

File tree

src/__tests__/__snapshots__/index.test.js.snap

Lines changed: 91 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -878,56 +878,80 @@ Object {
878878
"name": "Set safe mode",
879879
},
880880
Object {
881-
"description": "0:stepper, 1:food, 2:pid, 7:sedimentation, 8:filling, 9:emptying",
881+
"description": "bits: 0: pid, 1: stepper, 2: pump 1, 3: pump 2, 4: pumpo 3, 5: pump 4, 6: ph, 7: gas, 8: sedimentation, 9: filling, 10: emptying, 11: ph calibration, 12: acid addition, 13: base addition",
882882
"flags": Object {
883-
"0": "stepper",
884-
"1": "food",
885-
"2": "pid",
886-
"7": "sedimentation",
887-
"8": "filling",
888-
"9": "emptying",
883+
"0": "Enable/disable heating",
884+
"1": "Enable/disable agitation control",
885+
"10": "Enable/disable emptying pump (one of the phases of food control)",
886+
"11": "Enable/disable pH calibration",
887+
"12": "Enable/disable acid addition",
888+
"13": "Enable/disable base addition",
889+
"2": "Enable/disable food control 1",
890+
"3": "Enable/disable food control 2",
891+
"4": "Enable/disable food control 3",
892+
"5": "Enable/disable food control 4",
893+
"6": "Enable/disable pH control",
894+
"7": "Enable/disable gas control",
895+
"8": "Enable/disable sedimentation (one of the phases of food control)",
896+
"9": "Enable/disable filling pump (one of the phases of food control)",
889897
},
890898
"id": 3,
891899
"name": "Status enable",
892900
},
893901
Object {
894-
"description": "0:stepper, 1:food, 2:pid, 7:sedimentation, 8:filling, 9:emptying",
902+
"description": "bits: 0: pid, 1: stepper, 2: pump 1, 3: pump 2, 4: pumpo 3, 5: pump 4, 6: ph, 7: gas, 8: sedimentation, 9: filling, 10: emptying, 11: ph calibration, 12: acid addition, 13: base addition",
895903
"flags": Object {
896-
"0": "stepper",
897-
"1": "food",
898-
"2": "pid",
899-
"7": "sedimentation",
900-
"8": "filling",
901-
"9": "emptying",
904+
"0": "Enable/disable heating",
905+
"1": "Enable/disable agitation control",
906+
"10": "Enable/disable emptying pump (one of the phases of food control)",
907+
"11": "Enable/disable pH calibration",
908+
"12": "Enable/disable acid addition",
909+
"13": "Enable/disable base addition",
910+
"2": "Enable/disable food control 1",
911+
"3": "Enable/disable food control 2",
912+
"4": "Enable/disable food control 3",
913+
"5": "Enable/disable food control 4",
914+
"6": "Enable/disable pH control",
915+
"7": "Enable/disable gas control",
916+
"8": "Enable/disable sedimentation (one of the phases of food control)",
917+
"9": "Enable/disable filling pump (one of the phases of food control)",
902918
},
903919
"id": 4,
904920
"name": "Status disable",
905921
},
906922
Object {
907-
"description": "0:stepper, 1:food, 2:pid, 7:sedimentation, 8:filling, 9:emptying",
923+
"description": "
924+
bit 0: pcb probe, 1: liquid probe 1, 2: liquid probe 2, 3: pcb temperature, 4: liquid temperature 1, 5: liquid temperature 2, 6: target temp. range, 7: weight range",
908925
"flags": Object {
909-
"0": "pcb temperature probe",
910-
"1": "liquid temperature probe",
911-
"2": "pcb temperature range",
912-
"3": "liquid temperature range",
913-
"4": "target temperature range",
914-
"5": "weight range",
926+
"0": "Pcb probe failed (one wire not answering)",
927+
"1": "Liquid probe in the top failed (one wire not answering)",
928+
"2": "Liquid probe in the bottom failed (one wire not answering)",
929+
"3": "Temperature of PCB is out of range",
930+
"4": "Temperature of liquid in the top is out of range",
931+
"5": "emperature of liquid in the bottom is out of range",
932+
"6": "Target temperature is out of range",
933+
"7": "Weight out of range",
915934
},
916935
"id": 6,
917936
"name": "Error: failed",
937+
"writable": true,
918938
},
919939
Object {
920-
"description": "0:stepper, 1:food, 2:pid, 7:sedimentation, 8:filling, 9:emptying",
940+
"description": "
941+
bit 0: pcb probe, 1: liquid probe 1, 2: liquid probe 2, 3: pcb temperature, 4: liquid temperature 1, 5: liquid temperature 2, 6: target temp. range, 7: weight range",
921942
"flags": Object {
922-
"0": "pcb temperature probe",
923-
"1": "liquid temperature probe",
924-
"2": "pcb temperature range",
925-
"3": "liquid temperature range",
926-
"4": "target temperature range",
927-
"5": "weight range",
943+
"0": "Pcb probe failed (one wire not answering)",
944+
"1": "Liquid probe in the top failed (one wire not answering)",
945+
"2": "Liquid probe in the bottom failed (one wire not answering)",
946+
"3": "Temperature of PCB is out of range",
947+
"4": "Temperature of liquid in the top is out of range",
948+
"5": "emperature of liquid in the bottom is out of range",
949+
"6": "Target temperature is out of range",
950+
"7": "Weight out of range",
928951
},
929952
"id": 7,
930953
"name": "Error: recover",
954+
"writable": true,
931955
},
932956
Object {
933957
"description": "",
@@ -1030,12 +1054,12 @@ Object {
10301054
"writable": false,
10311055
},
10321056
Object {
1033-
"description": "Weight min in internal unit",
1057+
"description": "Save the last weight to avoid problems when there are power outages",
10341058
"factor": 1,
10351059
"label": "H",
1036-
"name": "Weight min",
1060+
"name": "Weight since last event",
10371061
"unit": "",
1038-
"variable": "minWeight",
1062+
"variable": "weightLastEvent",
10391063
"writable": false,
10401064
},
10411065
Object {
@@ -1106,17 +1130,16 @@ Object {
11061130
},
11071131
Object {
11081132
"description": "
1109-
bit 0: pcb probe, 1: liquid probe, 2: pcb temperature,
1110-
3: liquid temperature, 4: target temp. range, 5: weight range",
1133+
bit 0: pcb probe, 1: liquid probe 1, 2: liquid probe 2, 3: pcb temperature, 4: liquid temperature 1, 5: liquid temperature 2, 6: target temp. range, 7: weight range",
11111134
"factor": 1,
11121135
"flags": Object {
1113-
"0": "PCB temperature probe error",
1114-
"1": "External temperature 1 probe error",
1115-
"2": "External temperature 2 probe error",
1116-
"3": "PCB temperature out of range",
1117-
"4": "External temperature 1 out of range",
1118-
"5": "External temperature 2 out of range",
1119-
"6": "Target temperature out of range",
1136+
"0": "Pcb probe failed (one wire not answering)",
1137+
"1": "Liquid probe in the top failed (one wire not answering)",
1138+
"2": "Liquid probe in the bottom failed (one wire not answering)",
1139+
"3": "Temperature of PCB is out of range",
1140+
"4": "Temperature of liquid in the top is out of range",
1141+
"5": "emperature of liquid in the bottom is out of range",
1142+
"6": "Target temperature is out of range",
11201143
"7": "Weight out of range",
11211144
},
11221145
"label": "Y",
@@ -1128,16 +1151,23 @@ Object {
11281151
Object {
11291152
"description": "Status of the Bioreactor, the bits of this integer code
11301153
for the state of specific elements of the reactor (eg. motor ON/OFF, PUMP ON/OFF etc.).
1131-
bits: 0: stepper, 1: weight, 2: pid, 7: sedimentation, 8: filling, 9: emptying
1132-
",
1154+
bits: 0: pid, 1: stepper, 2: pump 1, 3: pump 2, 4: pumpo 3, 5: pump 4, 6: ph, 7: gas, 8: sedimentation, 9: filling, 10: emptying, 11: ph calibration, 12: acid addition, 13: base addition",
11331155
"factor": 1,
11341156
"flags": Object {
1135-
"0": "pid",
1136-
"1": "stepper",
1137-
"2": "output 1",
1138-
"3": "output 2",
1139-
"4": "output 3",
1140-
"5": "output 4",
1157+
"0": "Enable/disable heating",
1158+
"1": "Enable/disable agitation control",
1159+
"10": "Enable/disable emptying pump (one of the phases of food control)",
1160+
"11": "Enable/disable pH calibration",
1161+
"12": "Enable/disable acid addition",
1162+
"13": "Enable/disable base addition",
1163+
"2": "Enable/disable food control 1",
1164+
"3": "Enable/disable food control 2",
1165+
"4": "Enable/disable food control 3",
1166+
"5": "Enable/disable food control 4",
1167+
"6": "Enable/disable pH control",
1168+
"7": "Enable/disable gas control",
1169+
"8": "Enable/disable sedimentation (one of the phases of food control)",
1170+
"9": "Enable/disable filling pump (one of the phases of food control)",
11411171
},
11421172
"label": "Z",
11431173
"name": "Status",
@@ -1191,10 +1221,22 @@ Object {
11911221
"writable": false,
11921222
},
11931223
Object {
1224+
"description": "Time to wait in (minutes) to wait without rotation before emptying",
1225+
"factor": 1,
11941226
"label": "AF",
1227+
"name": "Sedimentation time",
1228+
"unit": "min",
1229+
"variable": "sedimentationTime",
1230+
"writable": false,
11951231
},
11961232
Object {
1233+
"description": "Time to wait in (minutes) to stay in the filled state",
1234+
"factor": 1,
11971235
"label": "AG",
1236+
"name": "Filling time",
1237+
"unit": "min",
1238+
"variable": "fillingTime",
1239+
"writable": false,
11981240
},
11991241
Object {
12001242
"label": "AH",
@@ -1251,7 +1293,7 @@ Object {
12511293
"label": "AY",
12521294
},
12531295
Object {
1254-
"description": "pid - food - stepper : ex. 1: only stepper",
1296+
"description": "bits: 0: pid, 1: stepper, 2: pump 1, 3: pump 2, 4: pumpo 3, 5: pump 4",
12551297
"factor": 1,
12561298
"flags": Object {
12571299
"0": "pid",

0 commit comments

Comments
 (0)