@@ -51,19 +51,6 @@ describe('evaluateDocChangeGate', () => {
5151 events . clearBuffer ( )
5252 } )
5353
54- it ( 'fast-accepts when the rejudge score drops by at least twice the normal threshold' , ( ) => {
55- const result = evaluateDocChangeGate ( {
56- baseScore : 6 ,
57- rejudgeScore : 5 ,
58- } )
59-
60- expect ( result . accepted ) . toBe ( true )
61- expect ( result . fastAccepted ) . toBe ( true )
62- expect ( result . status ) . toBe ( 'accepted_fast_rejudge' )
63- expect ( result . gateDelta ) . toBeCloseTo ( 1 , 6 )
64- expect ( result . reason ) . toBe ( 'Accepted without rerun because rejudge dropped by 1.0.' )
65- } )
66-
6754 it ( 'accepts when rerun minus rejudge clears the threshold' , ( ) => {
6855 const result = evaluateDocChangeGate ( {
6956 baseScore : 6 ,
@@ -72,7 +59,6 @@ describe('evaluateDocChangeGate', () => {
7259 } )
7360
7461 expect ( result . accepted ) . toBe ( true )
75- expect ( result . fastAccepted ) . toBe ( false )
7662 expect ( result . status ) . toBe ( 'accepted' )
7763 expect ( result . gateDelta ) . toBeCloseTo ( 0.6 , 6 )
7864 expect ( result . reason ) . toBe ( 'Accepted because rerun minus rejudge was 0.6.' )
@@ -86,7 +72,6 @@ describe('evaluateDocChangeGate', () => {
8672 } )
8773
8874 expect ( result . accepted ) . toBe ( false )
89- expect ( result . fastAccepted ) . toBe ( false )
9075 expect ( result . status ) . toBe ( 'rejected' )
9176 expect ( result . gateDelta ) . toBeCloseTo ( 0.3 , 6 )
9277 expect ( result . reason ) . toBe ( 'Rejected because rerun minus rejudge was 0.3.' )
@@ -158,12 +143,14 @@ describe('evaluateDocChangeGate', () => {
158143 text : 'Document the rerun gate' ,
159144 reason : 'Useful guidance' ,
160145 overfit : false ,
161- patchText : 'patch' ,
146+ fileChanges : [
147+ { path : 'docs/guide.md' , content : '# Guide\nRerun gate.\n' } ,
148+ ] ,
162149 diffText : '--- a/docs/guide.md\n+++ b/docs/guide.md\n' ,
163150 } ,
164151 ] ,
165152 } ) ,
166- materializeDocsChangeFromPatch : ( ) => ( {
153+ materializeDocsChange : ( ) => ( {
167154 tempDir : '/tmp/draft-docs' ,
168155 repoDir : '/tmp/draft-docs' ,
169156 before : { } ,
0 commit comments