@@ -121,25 +121,25 @@ describe('Unit Tests for Org file', () => {
121
121
test ( 'Detects "nologrepeat" when set in #+STARTUP as only option' , ( ) => {
122
122
const testOrgFile = readFixture ( 'schedule_with_repeater_and_nologrepeat' ) ;
123
123
const state = parseOrg ( testOrgFile ) ;
124
- expect ( noLogRepeatEnabledP ( { state, headerIndex : 0 } ) ) . toBe ( false ) ;
124
+ expect ( noLogRepeatEnabledP ( { state, headerIndex : 0 } ) ) . toBe ( true ) ;
125
125
} ) ;
126
126
test ( 'Detects "nologrepeat" when set in #+STARTUP with other options' , ( ) => {
127
127
const testOrgFile = readFixture ( 'schedule_with_repeater_and_nologrepeat_and_other_options' ) ;
128
128
const state = parseOrg ( testOrgFile ) ;
129
- expect ( noLogRepeatEnabledP ( { state, headerIndex : 0 } ) ) . toBe ( false ) ;
129
+ expect ( noLogRepeatEnabledP ( { state, headerIndex : 0 } ) ) . toBe ( true ) ;
130
130
} ) ;
131
131
test ( 'Does not detect "nologrepeat" when not set' , ( ) => {
132
132
const testOrgFile = readFixture ( 'schedule_with_repeater' ) ;
133
133
const state = parseOrg ( testOrgFile ) ;
134
- expect ( noLogRepeatEnabledP ( { state, headerIndex : 0 } ) ) . toBe ( true ) ;
134
+ expect ( noLogRepeatEnabledP ( { state, headerIndex : 0 } ) ) . toBe ( false ) ;
135
135
} ) ;
136
136
test ( 'Detects "nologrepeat" when set via a property list' , ( ) => {
137
137
const testOrgFile = readFixture ( 'schedule_with_repeater_and_nologrepeat_property' ) ;
138
138
const state = parseOrg ( testOrgFile ) ;
139
- expect ( noLogRepeatEnabledP ( { state, headerIndex : 1 } ) ) . toBe ( false ) ;
140
- expect ( noLogRepeatEnabledP ( { state, headerIndex : 2 } ) ) . toBe ( false ) ;
141
- expect ( noLogRepeatEnabledP ( { state, headerIndex : 5 } ) ) . toBe ( true ) ;
142
- expect ( noLogRepeatEnabledP ( { state, headerIndex : 7 } ) ) . toBe ( false ) ;
139
+ expect ( noLogRepeatEnabledP ( { state, headerIndex : 1 } ) ) . toBe ( true ) ;
140
+ expect ( noLogRepeatEnabledP ( { state, headerIndex : 2 } ) ) . toBe ( true ) ;
141
+ expect ( noLogRepeatEnabledP ( { state, headerIndex : 5 } ) ) . toBe ( false ) ;
142
+ expect ( noLogRepeatEnabledP ( { state, headerIndex : 7 } ) ) . toBe ( true ) ;
143
143
} ) ;
144
144
} ) ;
145
145
} ) ;
0 commit comments