@@ -24,6 +24,15 @@ function Home() {
2424 }
2525 alert("Submitted wrong")
2626 }
27+
28+ return (
29+ <main className="flex min-h-screen flex-col items-center justify-between p-24">
30+ <div className='text-black'>
31+ <input value={inputValue} onChange={(e) => setInputValue(e.target.value)} />
32+ </div>
33+ <button onClick={() => submit()}>Submit</button>
34+ </main>
35+ )
2736}
2837`
2938
@@ -334,4 +343,46 @@ describe('artifact markings new', () => {
334343it ( 'artifacts markings complete' , ( ) => {
335344 const markings = addArtifactMarkings ( largeFixture , '/file.js' )
336345 // @todo : finish this test
346+ expect ( markings ) . toContainEqual ( {
347+ type : 'call' ,
348+ startIndex : 486 ,
349+ endIndex : 499 ,
350+ functionOrCallId : '/file.js-call-_HomeAnonymousSetInputValue'
351+ } )
352+ expect ( markings ) . toContainEqual ( {
353+ type : 'arguments' ,
354+ functionOrCallId : '/file.js-call-_HomeAnonymousSetInputValue' ,
355+ startIndex : 499 ,
356+ endIndex : 515
357+ } )
358+ expect ( markings ) . toContainEqual ( {
359+ type : 'params' ,
360+ functionOrCallId : '/file.js-_HomeAnonymous2' ,
361+ startIndex : 568 ,
362+ endIndex : 570
363+ } )
364+ expect ( markings ) . toContainEqual ( {
365+ type : 'call' ,
366+ startIndex : 574 ,
367+ endIndex : 580 ,
368+ functionOrCallId : '/file.js-call-_HomeAnonymousSubmit'
369+ } )
370+ expect ( markings ) . toContainEqual ( {
371+ type : 'arguments' ,
372+ functionOrCallId : '/file.js-call-_HomeAnonymousSubmit' ,
373+ startIndex : 580 ,
374+ endIndex : 582
375+ } )
376+ expect ( markings ) . toContainEqual ( {
377+ type : 'call' ,
378+ startIndex : 486 ,
379+ endIndex : 499 ,
380+ functionOrCallId : '/file.js-call-_HomeAnonymousSetInputValue'
381+ } )
382+ expect ( markings ) . toContainEqual ( {
383+ type : 'arguments' ,
384+ functionOrCallId : '/file.js-call-_HomeAnonymousSetInputValue' ,
385+ startIndex : 499 ,
386+ endIndex : 515
387+ } )
337388} )
0 commit comments