@@ -42,8 +42,6 @@ import {
4242 HubError ,
4343 MetadataProblem ,
4444 didFailToFinish ,
45- didFinish ,
46- didStart ,
4745 flashFirmware as flashFirmwareAction ,
4846} from './actions' ;
4947import flashFirmware from './sagas' ;
@@ -124,12 +122,6 @@ describe('flashFirmware', () => {
124122 const mpyBinaryData = new Uint8Array ( mpySize ) ;
125123 saga . put ( didCompile ( mpyBinaryData ) ) ;
126124
127- // then start flashing the firmware
128-
129- // should get didStart action just before starting to erase
130- action = await saga . take ( ) ;
131- expect ( action ) . toEqual ( didStart ( ) ) ;
132-
133125 // erase first
134126
135127 action = await saga . take ( ) ;
@@ -232,9 +224,6 @@ describe('flashFirmware', () => {
232224
233225 // then we are done
234226
235- action = await saga . take ( ) ;
236- expect ( action ) . toEqual ( didFinish ( ) ) ;
237-
238227 await saga . end ( ) ;
239228 } ) ;
240229
@@ -284,12 +273,6 @@ describe('flashFirmware', () => {
284273 saga . put ( didRequest ( 0 ) ) ;
285274 saga . put ( infoResponse ( 0x01000000 , 0x08005000 , 0x081f800 , HubType . MoveHub ) ) ;
286275
287- // then start flashing the firmware
288-
289- // should get didStart action just before starting to erase
290- action = await saga . take ( ) ;
291- expect ( action ) . toEqual ( didStart ( ) ) ;
292-
293276 // erase first
294277
295278 action = await saga . take ( ) ;
@@ -392,9 +375,6 @@ describe('flashFirmware', () => {
392375
393376 // then we are done
394377
395- action = await saga . take ( ) ;
396- expect ( action ) . toEqual ( didFinish ( ) ) ;
397-
398378 await saga . end ( ) ;
399379 } ) ;
400380
@@ -1008,12 +988,6 @@ describe('flashFirmware', () => {
1008988 const mpyBinaryData = new Uint8Array ( mpySize ) ;
1009989 saga . put ( didCompile ( mpyBinaryData ) ) ;
1010990
1011- // then start flashing the firmware
1012-
1013- // should get didStart action just before starting to erase
1014- action = await saga . take ( ) ;
1015- expect ( action ) . toEqual ( didStart ( ) ) ;
1016-
1017991 // erase first
1018992
1019993 action = await saga . take ( ) ;
@@ -1121,12 +1095,6 @@ describe('flashFirmware', () => {
11211095 const mpyBinaryData = new Uint8Array ( mpySize ) ;
11221096 saga . put ( didCompile ( mpyBinaryData ) ) ;
11231097
1124- // then start flashing the firmware
1125-
1126- // should get didStart action just before starting to erase
1127- action = await saga . take ( ) ;
1128- expect ( action ) . toEqual ( didStart ( ) ) ;
1129-
11301098 // erase first
11311099
11321100 action = await saga . take ( ) ;
@@ -1243,12 +1211,6 @@ describe('flashFirmware', () => {
12431211 const mpyBinaryData = new Uint8Array ( mpySize ) ;
12441212 saga . put ( didCompile ( mpyBinaryData ) ) ;
12451213
1246- // then start flashing the firmware
1247-
1248- // should get didStart action just before starting to erase
1249- action = await saga . take ( ) ;
1250- expect ( action ) . toEqual ( didStart ( ) ) ;
1251-
12521214 // erase first
12531215
12541216 action = await saga . take ( ) ;
@@ -1416,12 +1378,6 @@ describe('flashFirmware', () => {
14161378 const mpyBinaryData = new Uint8Array ( mpySize ) ;
14171379 saga . put ( didCompile ( mpyBinaryData ) ) ;
14181380
1419- // then start flashing the firmware
1420-
1421- // should get didStart action just before starting to erase
1422- action = await saga . take ( ) ;
1423- expect ( action ) . toEqual ( didStart ( ) ) ;
1424-
14251381 // erase first
14261382
14271383 action = await saga . take ( ) ;
@@ -1594,12 +1550,6 @@ describe('flashFirmware', () => {
15941550 saga . put ( didRequest ( 0 ) ) ;
15951551 saga . put ( infoResponse ( 0x01000000 , 0x08005000 , 0x081f800 , HubType . MoveHub ) ) ;
15961552
1597- // then start flashing the firmware
1598-
1599- // should get didStart action just before starting to erase
1600- action = await saga . take ( ) ;
1601- expect ( action ) . toEqual ( didStart ( ) ) ;
1602-
16031553 // erase first
16041554
16051555 action = await saga . take ( ) ;
@@ -1703,9 +1653,6 @@ describe('flashFirmware', () => {
17031653
17041654 // then we are done
17051655
1706- action = await saga . take ( ) ;
1707- expect ( action ) . toEqual ( didFinish ( ) ) ;
1708-
17091656 await saga . end ( ) ;
17101657 } ) ;
17111658
@@ -2156,12 +2103,6 @@ describe('flashFirmware', () => {
21562103 const mpyBinaryData = new Uint8Array ( mpySize ) ;
21572104 saga . put ( didCompile ( mpyBinaryData ) ) ;
21582105
2159- // then start flashing the firmware
2160-
2161- // should get didStart action just before starting to erase
2162- action = await saga . take ( ) ;
2163- expect ( action ) . toEqual ( didStart ( ) ) ;
2164-
21652106 // erase first
21662107
21672108 action = await saga . take ( ) ;
@@ -2262,9 +2203,6 @@ describe('flashFirmware', () => {
22622203
22632204 // then we are done
22642205
2265- action = await saga . take ( ) ;
2266- expect ( action ) . toEqual ( didFinish ( ) ) ;
2267-
22682206 await saga . end ( ) ;
22692207 } ) ;
22702208} ) ;
0 commit comments