@@ -1825,6 +1825,18 @@ describe('Config', () => {
18251825 expect ( value ) . toBe ( 'a' ) ;
18261826 } ) ;
18271827
1828+ it ( 'Should return the configured keybinding (unassigned)' , ( ) => {
1829+ // Setup
1830+ vscode . mockExtensionSettingReturnValue ( 'keyboardShortcut.find' , 'UNASSIGNED' ) ;
1831+
1832+ // Run
1833+ const value = config . keybindings . find ;
1834+
1835+ // Assert
1836+ expect ( workspaceConfiguration . get ) . toBeCalledWith ( 'keyboardShortcut.find' ) ;
1837+ expect ( value ) . toBeNull ( ) ;
1838+ } ) ;
1839+
18281840 it ( 'Should return the default keybinding when the value is not one of the available keybindings' , ( ) => {
18291841 // Setup
18301842 vscode . mockExtensionSettingReturnValue ( 'keyboardShortcut.find' , 'CTRL/CMD + Shift + A' ) ;
@@ -1872,6 +1884,18 @@ describe('Config', () => {
18721884 expect ( value ) . toBe ( 'a' ) ;
18731885 } ) ;
18741886
1887+ it ( 'Should return the configured keybinding (unassigned)' , ( ) => {
1888+ // Setup
1889+ vscode . mockExtensionSettingReturnValue ( 'keyboardShortcut.refresh' , 'UNASSIGNED' ) ;
1890+
1891+ // Run
1892+ const value = config . keybindings . refresh ;
1893+
1894+ // Assert
1895+ expect ( workspaceConfiguration . get ) . toBeCalledWith ( 'keyboardShortcut.refresh' ) ;
1896+ expect ( value ) . toBeNull ( ) ;
1897+ } ) ;
1898+
18751899 it ( 'Should return the default keybinding when the value is not one of the available keybindings' , ( ) => {
18761900 // Setup
18771901 vscode . mockExtensionSettingReturnValue ( 'keyboardShortcut.refresh' , 'CTRL/CMD + Shift + A' ) ;
@@ -1919,6 +1943,18 @@ describe('Config', () => {
19191943 expect ( value ) . toBe ( 'a' ) ;
19201944 } ) ;
19211945
1946+ it ( 'Should return the configured keybinding (unassigned)' , ( ) => {
1947+ // Setup
1948+ vscode . mockExtensionSettingReturnValue ( 'keyboardShortcut.scrollToHead' , 'UNASSIGNED' ) ;
1949+
1950+ // Run
1951+ const value = config . keybindings . scrollToHead ;
1952+
1953+ // Assert
1954+ expect ( workspaceConfiguration . get ) . toBeCalledWith ( 'keyboardShortcut.scrollToHead' ) ;
1955+ expect ( value ) . toBeNull ( ) ;
1956+ } ) ;
1957+
19221958 it ( 'Should return the default keybinding when the value is not one of the available keybindings' , ( ) => {
19231959 // Setup
19241960 vscode . mockExtensionSettingReturnValue ( 'keyboardShortcut.scrollToHead' , 'CTRL/CMD + Shift + A' ) ;
@@ -1966,6 +2002,18 @@ describe('Config', () => {
19662002 expect ( value ) . toBe ( 'a' ) ;
19672003 } ) ;
19682004
2005+ it ( 'Should return the configured keybinding (unassigned)' , ( ) => {
2006+ // Setup
2007+ vscode . mockExtensionSettingReturnValue ( 'keyboardShortcut.scrollToStash' , 'UNASSIGNED' ) ;
2008+
2009+ // Run
2010+ const value = config . keybindings . scrollToStash ;
2011+
2012+ // Assert
2013+ expect ( workspaceConfiguration . get ) . toBeCalledWith ( 'keyboardShortcut.scrollToStash' ) ;
2014+ expect ( value ) . toBeNull ( ) ;
2015+ } ) ;
2016+
19692017 it ( 'Should return the default keybinding when the value is not one of the available keybindings' , ( ) => {
19702018 // Setup
19712019 vscode . mockExtensionSettingReturnValue ( 'keyboardShortcut.scrollToStash' , 'CTRL/CMD + Shift + A' ) ;
0 commit comments