@@ -248,7 +248,7 @@ describe("protected generated component answers", () => {
248248
249249 it ( "keeps the producer's route while the generated child admits only Syntax" , function * ( ) {
250250 const told : string [ ] = [ ] ;
251- const stream = new InMemoryStream ( ) ;
251+ const stream = yield * useJournalStream ( ROOT_PATH ) ;
252252 yield * scoped ( function * ( ) {
253253 yield * registerComponents ( [
254254 {
@@ -286,7 +286,13 @@ describe("protected generated component answers", () => {
286286 } ) ;
287287 for ( const text of [ "<Producer />" , "<Evaluate text='inert' />" , "<File path='x' />" ] ) {
288288 expect (
289- yield * refusal ( run ( `<Evaluate text={${ JSON . stringify ( text ) } } />` , [ syntaxProfile ( ) ] ) ) ,
289+ yield * refusal (
290+ run (
291+ `<Evaluate text={${ JSON . stringify ( text ) } } />` ,
292+ [ syntaxProfile ( ) ] ,
293+ yield * useJournalStream ( ROOT_PATH ) ,
294+ ) ,
295+ ) ,
290296 ) . toContain ( "did not admit" ) ;
291297 }
292298 } ) ;
@@ -1550,7 +1556,11 @@ describe("Tier FE35 — structural constructs in a generated fragment", () => {
15501556 ] ;
15511557 for ( const [ fragment , expected ] of cases ) {
15521558 const failed = yield * refusal (
1553- run ( `<Evaluate text={'${ fragment } '} allow={["read"]} />\n` , [ reading ( files ) ] ) ,
1559+ run (
1560+ `<Evaluate text={'${ fragment } '} allow={["read"]} />\n` ,
1561+ [ reading ( files ) ] ,
1562+ yield * useJournalStream ( ROOT_PATH ) ,
1563+ ) ,
15541564 ) ;
15551565 expect ( failed ) . toContain ( expected ) ;
15561566 }
@@ -1578,7 +1588,11 @@ describe("Tier FE35 — structural constructs in a generated fragment", () => {
15781588 ] ;
15791589 for ( const fragment of cases ) {
15801590 const failed = yield * refusal (
1581- run ( `<Evaluate text={'${ fragment } '} allow={["read"]} />\n` , [ reading ( files ) ] ) ,
1591+ run (
1592+ `<Evaluate text={'${ fragment } '} allow={["read"]} />\n` ,
1593+ [ reading ( files ) ] ,
1594+ yield * useJournalStream ( ROOT_PATH ) ,
1595+ ) ,
15821596 ) ;
15831597 expect ( failed ) . toContain ( "declarative data" ) ;
15841598 }
@@ -1610,6 +1624,7 @@ describe("Tier FE35 — structural constructs in a generated fragment", () => {
16101624 run (
16111625 `<Evaluate text={'<Each in={["a"]} let="item">\\nx\\n</Each>\\n<Json value={item} />\\n'} />\n` ,
16121626 [ reading ( files ) ] ,
1627+ yield * useJournalStream ( ROOT_PATH ) ,
16131628 ) ,
16141629 ) ;
16151630 expect ( leaked ) . toContain ( "declarative data" ) ;
@@ -1619,6 +1634,7 @@ describe("Tier FE35 — structural constructs in a generated fragment", () => {
16191634 `<Evaluate text={'<Each in={["a"]} let="item" as="all">\\nx\\n</Each>\\n` +
16201635 `<Json value={all} />\\n'} as="answer" />\n\n<Json value={answer} />\n` ,
16211636 [ reading ( files ) ] ,
1637+ yield * useJournalStream ( ROOT_PATH ) ,
16221638 ) ;
16231639 expect ( String ( captured ) ) . toContain ( "x" ) ;
16241640 expect ( files . performed ) . toEqual ( [ ] ) ;
@@ -1644,7 +1660,11 @@ describe("Tier FE35 — structural constructs in a generated fragment", () => {
16441660 ] ;
16451661 for ( const [ fragment , expected ] of cases ) {
16461662 const failed = yield * refusal (
1647- run ( `<Evaluate text={'${ fragment } '} allow={["read"]} />\n` , [ reading ( files ) ] ) ,
1663+ run (
1664+ `<Evaluate text={'${ fragment } '} allow={["read"]} />\n` ,
1665+ [ reading ( files ) ] ,
1666+ yield * useJournalStream ( ROOT_PATH ) ,
1667+ ) ,
16481668 ) ;
16491669 expect ( failed ) . toContain ( expected ) ;
16501670 }
@@ -1660,6 +1680,7 @@ describe("Tier FE35 — structural constructs in a generated fragment", () => {
16601680 `<Evaluate text={'<Loop max={2}>\\n<Dir path="d">\\n<Break />\\n</Dir>\\n</Loop>\\n'} ` +
16611681 `allow={["write"]} />\n` ,
16621682 [ both ( writable ) ] ,
1683+ yield * useJournalStream ( ROOT_PATH ) ,
16631684 ) ,
16641685 ) ;
16651686 expect ( stray ) . toContain ( "structural construct" ) ;
@@ -1733,7 +1754,11 @@ describe("Tier FE35 — structural constructs in a generated fragment", () => {
17331754 ] ;
17341755 for ( const [ body , expected ] of cases ) {
17351756 const failed = yield * refusal (
1736- run ( `<Evaluate text={'<If condition={true}>\\n${ body } \\n</If>\\n'} />\n` , [ reading ( files ) ] ) ,
1757+ run (
1758+ `<Evaluate text={'<If condition={true}>\\n${ body } \\n</If>\\n'} />\n` ,
1759+ [ reading ( files ) ] ,
1760+ yield * useJournalStream ( ROOT_PATH ) ,
1761+ ) ,
17371762 ) ;
17381763 expect ( failed ) . toContain ( expected ) ;
17391764 }
0 commit comments