@@ -19,7 +19,7 @@ func TestMain(m *testing.M) {
1919
2020func TestLoadConfig (t * testing.T ) {
2121 testConfig := `
22- askToContinue: true
22+ onSessionEnd: ask
2323work:
2424 duration: 31m
2525 title: custom work
2828 setupViper ()
2929 writeAndLoadConfig (t , testConfig )
3030
31- assert .True (t , C . AskToContinue , "AskToContinue should be true " )
31+ assert .Equal (t , "ask" , C . OnSessionEnd , "OnSessionEnd should be 'ask' " )
3232 assert .Equal (t , 31 * time .Minute , C .Work .Duration , "Work duration should be 31 minutes" )
3333 assert .Equal (t , "custom work" , C .Work .Title , "Work title should be 'custom work'" )
3434}
@@ -46,7 +46,7 @@ func TestLoadConfigDefaults(t *testing.T) {
4646
4747func TestLoadConfigPartialUpdate (t * testing.T ) {
4848 partialConfig := `
49- askToContinue: true
49+ onSessionEnd: ask
5050work:
5151 duration: 30m
5252 title: custom work
@@ -58,7 +58,7 @@ asciiArt:
5858 writeAndLoadConfig (t , partialConfig )
5959
6060 // test overridden values
61- assert .True (t , C . AskToContinue , "AskToContinue should be true " )
61+ assert .Equal (t , "ask" , C . OnSessionEnd , "OnSessionEnd should be 'ask' " )
6262 assert .Equal (t , 30 * time .Minute , C .Work .Duration , "Work duration should be 30 minutes" )
6363 assert .Equal (t , "custom work" , C .Work .Title , "Work title should be 'custom work'" )
6464 assert .Equal (t , "#FF0000" , C .ASCIIArt .Color , "ASCII art color should be '#FF0000'" )
9696
9797func TestLoadConfigAllFieldsComprehensive (t * testing.T ) {
9898 configYAML := `
99- askToContinue: true
99+ onSessionEnd: ask
100100asciiArt:
101101 enabled: true
102102 font: ansi
@@ -130,7 +130,7 @@ break:
130130 writeAndLoadConfig (t , configYAML )
131131
132132 // main config
133- assert .True (t , C . AskToContinue , "AskToContinue should be true " )
133+ assert .Equal (t , "ask" , C . OnSessionEnd , "OnSessionEnd should be 'ask' " )
134134
135135 // ASCII art
136136 assert .True (t , C .ASCIIArt .Enabled , "ASCII art should be enabled" )
@@ -274,7 +274,7 @@ func getDefaultConfig() Config {
274274// assertConfigMatches validates all fields between expected and actual config
275275func assertConfigMatches (t * testing.T , expected Config , actual Config ) {
276276 // main config assertion
277- assert .Equal (t , expected .AskToContinue , actual .AskToContinue )
277+ assert .Equal (t , expected .OnSessionEnd , actual .OnSessionEnd )
278278
279279 // ASCII Art assertions
280280 assert .Equal (t , expected .ASCIIArt .Enabled , actual .ASCIIArt .Enabled )
0 commit comments