@@ -28,8 +28,14 @@ describe("Keybind.toString", () => {
2828 } )
2929
3030 test ( "should convert shift modifier to string" , ( ) => {
31- const info : Keybind . Info = { ctrl : false , meta : false , shift : true , leader : false , name : "enter" }
32- expect ( Keybind . toString ( info ) ) . toBe ( "shift+enter" )
31+ const info : Keybind . Info = {
32+ ctrl : false ,
33+ meta : false ,
34+ shift : true ,
35+ leader : false ,
36+ name : "return" ,
37+ }
38+ expect ( Keybind . toString ( info ) ) . toBe ( "shift+return" )
3339 } )
3440
3541 test ( "should convert function key to string" , ( ) => {
@@ -38,7 +44,13 @@ describe("Keybind.toString", () => {
3844 } )
3945
4046 test ( "should convert special key to string" , ( ) => {
41- const info : Keybind . Info = { ctrl : false , meta : false , shift : false , leader : false , name : "pgup" }
47+ const info : Keybind . Info = {
48+ ctrl : false ,
49+ meta : false ,
50+ shift : false ,
51+ leader : false ,
52+ name : "pgup" ,
53+ }
4254 expect ( Keybind . toString ( info ) ) . toBe ( "pgup" )
4355 } )
4456
@@ -220,15 +232,15 @@ describe("Keybind.parse", () => {
220232 ] )
221233 } )
222234
223- test ( "should parse shift+enter combination" , ( ) => {
224- const result = Keybind . parse ( "shift+enter " )
235+ test ( "should parse shift+return combination" , ( ) => {
236+ const result = Keybind . parse ( "shift+return " )
225237 expect ( result ) . toEqual ( [
226238 {
227239 ctrl : false ,
228240 meta : false ,
229241 shift : true ,
230242 leader : false ,
231- name : "enter " ,
243+ name : "return " ,
232244 } ,
233245 ] )
234246 } )
0 commit comments