mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-08 04:11:18 +02:00
test: supply holdDeferKeepIndex to the CEO routing mocks and follow split-overflow into the marathon lane
The registered-callback fixtures mock ceo-mode-option and lacked the new export; the split fixtures asserted the periodic tier; the registered-budget check looked for split-overflow only in the periodic manifest.
This commit is contained in:
1 parent
bf4667146c
commit
958d1ceba6
6 files changed
+14
-8
No files matched your search
@@ -52,6 +52,7 @@ mock.module(path.join(root,'test/helpers/ceo-mode-option.ts'),()=>({
|
||||
ceoExpansionPacingChoice:()=>{current.pacingChoices++;return scenario.startsWith('pacing')&&(!current.pacingSent||scenario==='pacing-repeated')?{call:{questions:[]},index:scenario==='pacing-unsupported'?0:1}:null;},
|
||||
ceoExpansionPacingReady:()=>{current.pacingChecks++;return (scenario==='pacing'||scenario==='pacing-repeated')&¤t.pacingChecks>=3;},
|
||||
ceoModeSubmissionInput:()=>scenario==='mode-submit'&&!current.submitted?'\\r':null,
|
||||
holdDeferKeepIndex:()=>null,
|
||||
nextCeoModeNavigation:(_visible,target)=>{
|
||||
if(scenario==='navigation')throw new Error('fixture navigation failed');
|
||||
current.mode=target; return {kind:'mode',index:target==='HOLD SCOPE'?2:1,question};
|
||||
|
||||
Reference in new issue
Block a user