@@ -7,7 +7,7 @@ import { fromJS } from "immutable"
77import Schemes from "components/schemes"
88
99describe ( "<Schemes/>" , function ( ) {
10- it ( "calls props.specActions.setScheme() when no operationScheme is selected" , function ( ) {
10+ it ( "calls props.specActions.setScheme() when no currentScheme is selected" , function ( ) {
1111
1212 let setSchemeSpy = createSpy ( )
1313
@@ -20,24 +20,24 @@ describe("<Schemes/>", function(){
2020 "http" ,
2121 "https"
2222 ] ) ,
23- operationScheme : undefined ,
23+ currentScheme : undefined ,
2424 path : "/test" ,
2525 method : "get"
2626 }
2727
2828 // When
2929 let wrapper = shallow ( < Schemes { ...props } /> )
3030
31- // Then operationScheme should default to first scheme in options list
31+ // Then currentScheme should default to first scheme in options list
3232 expect ( props . specActions . setScheme ) . toHaveBeenCalledWith ( "http" , "/test" , "get" )
3333
34- // When the operationScheme is no longer in the list of options
34+ // When the currentScheme is no longer in the list of options
3535 props . schemes = fromJS ( [
3636 "https"
3737 ] )
3838 wrapper . setProps ( props )
3939
40- // Then operationScheme should default to first scheme in options list
40+ // Then currentScheme should default to first scheme in options list
4141 expect ( props . specActions . setScheme ) . toHaveBeenCalledWith ( "https" , "/test" , "get" )
4242 } )
4343
@@ -54,7 +54,7 @@ describe("<Schemes/>", function(){
5454 "http" ,
5555 "https"
5656 ] ) ,
57- operationScheme : "https"
57+ currentScheme : "https"
5858 }
5959
6060 // When
@@ -66,7 +66,7 @@ describe("<Schemes/>", function(){
6666 // After an update
6767 wrapper . instance ( ) . componentWillReceiveProps ( props )
6868
69- // Should not be called again, since `operationScheme ` is in schemes
69+ // Should not be called again, since `currentScheme ` is in schemes
7070 expect ( setSchemeSpy . calls . length ) . toEqual ( 1 )
7171 } )
7272} )
0 commit comments