@@ -41,7 +41,7 @@ describe('mainReducer testing', () => {
41
41
} ,
42
42
currentTab : 87 ,
43
43
port : {
44
- postMessage : ( ) => { } ,
44
+ postMessage : ( ) => { } ,
45
45
} ,
46
46
} ;
47
47
@@ -66,7 +66,7 @@ describe('mainReducer testing', () => {
66
66
expect ( mainReducer ( state , moveForward ( ) ) . tabs [ currentTab ] . sliderIndex ) . toEqual ( 3 ) ;
67
67
expect ( mainReducer ( state , moveForward ( ) ) . tabs [ currentTab ] . playing ) . toEqual ( false ) ;
68
68
} ) ;
69
- it ( 'should not increment if sliderIndex at end' , ( ) => {
69
+ it ( 'should not increment past end value if sliderIndex at end' , ( ) => {
70
70
state . tabs [ currentTab ] . sliderIndex = 3 ;
71
71
const { sliderIndex } = mainReducer ( state , moveForward ( ) ) . tabs [ currentTab ] ;
72
72
expect ( sliderIndex ) . toBe ( 3 ) ;
@@ -78,7 +78,7 @@ describe('mainReducer testing', () => {
78
78
} ) ;
79
79
80
80
describe ( 'changeView' , ( ) => {
81
- it ( 'unselect view if same index was selected' , ( ) => {
81
+ it ( 'should unselect view if same index was selected' , ( ) => {
82
82
state . tabs [ currentTab ] . viewIndex = 1 ;
83
83
expect ( mainReducer ( state , changeView ( 1 ) ) . tabs [ currentTab ] . viewIndex ) . toEqual ( - 1 ) ;
84
84
} ) ;
@@ -91,6 +91,7 @@ describe('mainReducer testing', () => {
91
91
it ( 'should change sliderIndex' , ( ) => {
92
92
expect ( mainReducer ( state , changeSlider ( 2 ) ) . tabs [ currentTab ] . sliderIndex ) . toEqual ( 2 ) ;
93
93
} ) ;
94
+ // should also change view
94
95
} ) ;
95
96
96
97
describe ( 'empty' , ( ) => {
@@ -101,6 +102,7 @@ describe('mainReducer testing', () => {
101
102
expect ( mainReducer ( state , emptySnapshots ( ) ) . tabs [ currentTab ]
102
103
. snapshots ) . toEqual ( state . tabs [ currentTab ] . snapshots . slice ( 0 , 1 ) ) ;
103
104
} ) ;
105
+ // should push slider back to start position
104
106
} ) ;
105
107
106
108
describe ( 'setPort' , ( ) => {
@@ -110,7 +112,7 @@ describe('mainReducer testing', () => {
110
112
} ) ;
111
113
112
114
describe ( 'Import' , ( ) => {
113
- it ( 'impoting file should replace snapshots of devtool' , ( ) => {
115
+ it ( 'importing file should replace snapshots of devtool' , ( ) => {
114
116
expect ( mainReducer ( state , importSnapshots ( [ 100 , 101 ] ) ) . tabs [ currentTab ] . snapshots ) . toEqual ( [ 100 , 101 ] ) ;
115
117
} ) ;
116
118
} ) ;
0 commit comments