@@ -10,11 +10,10 @@ import { describe, it } from "@executablemd/test-support/bdd";
1010import { expect } from "@executablemd/test-support/expect" ;
1111import { race , scoped , sleep } from "effection" ;
1212import { useEvalScope } from "@effectionx/scope-eval" ;
13- import { Component } from "../src/component-api.ts" ;
13+ import { Component , content } from "../src/component-api.ts" ;
1414import { expandSegments } from "../src/expand.ts" ;
1515import { renderSegments } from "../src/render.ts" ;
1616import { scanSegments } from "../src/scanner.ts" ;
17- import { useContent } from "../src/content-context.ts" ;
1817import {
1918 BOOM_BLOCK ,
2019 component ,
@@ -48,7 +47,7 @@ describe("Tier O — Eval scope hierarchy", () => {
4847 Probe : component ( "Probe" , ( ) =>
4948 ( function * ( ) {
5049 yield * useWatch ( timeline , "own" ) ;
51- return yield * useContent ( ) ;
50+ return yield * content ( ) ;
5251 } ) ( ) ,
5352 ) ,
5453 } ;
@@ -69,7 +68,7 @@ describe("Tier O — Eval scope hierarchy", () => {
6968 Probe : component ( "Probe" , ( ) =>
7069 ( function * ( ) {
7170 yield * useWatch ( timeline , "own" ) ;
72- return yield * useContent ( ) ;
71+ return yield * content ( ) ;
7372 } ) ( ) ,
7473 ) ,
7574 } ;
@@ -86,9 +85,9 @@ describe("Tier O — Eval scope hierarchy", () => {
8685 const definitions = {
8786 Probe : component ( "Probe" , ( ) =>
8887 ( function * ( ) {
89- const content = yield * useContent ( ) ;
88+ const projected = yield * content ( ) ;
9089 yield * useWatch ( timeline , "own" ) ;
91- return content ;
90+ return projected ;
9291 } ) ( ) ,
9392 ) ,
9493 } ;
@@ -105,7 +104,7 @@ describe("Tier O — Eval scope hierarchy", () => {
105104 Probe : component ( "Probe" , ( ) =>
106105 ( function * ( ) {
107106 yield * useWatch ( timeline , "own" ) ;
108- return yield * useContent ( ) ;
107+ return yield * content ( ) ;
109108 } ) ( ) ,
110109 ) ,
111110 } ;
@@ -129,7 +128,7 @@ describe("Tier O — Eval scope hierarchy", () => {
129128 Probe : component ( "Probe" , ( ) =>
130129 ( function * ( ) {
131130 yield * useWatch ( timeline , "own" , true ) ;
132- return yield * useContent ( ) ;
131+ return yield * content ( ) ;
133132 } ) ( ) ,
134133 ) ,
135134 } ;
@@ -178,7 +177,7 @@ describe("Tier O — Eval scope hierarchy", () => {
178177 Probe : component ( "Probe" , ( ) =>
179178 ( function * ( ) {
180179 yield * useWatch ( timeline , "own" ) ;
181- yield * useContent ( ) ;
180+ yield * content ( ) ;
182181 throw new Error ( "body exploded" ) ;
183182 } ) ( ) ,
184183 ) ,
@@ -212,7 +211,7 @@ describe("Tier O — Eval scope hierarchy", () => {
212211 Probe : component ( "Probe" , ( ) =>
213212 ( function * ( ) {
214213 yield * useWatch ( timeline , "own" ) ;
215- return yield * useContent ( ) ;
214+ return yield * content ( ) ;
216215 } ) ( ) ,
217216 ) ,
218217 } ;
@@ -229,13 +228,13 @@ describe("Tier O — Eval scope hierarchy", () => {
229228 Outer : component ( "Outer" , ( ) =>
230229 ( function * ( ) {
231230 yield * useWatch ( timeline , "outer" ) ;
232- return yield * useContent ( ) ;
231+ return yield * content ( ) ;
233232 } ) ( ) ,
234233 ) ,
235234 Inner : component ( "Inner" , ( ) =>
236235 ( function * ( ) {
237236 yield * useWatch ( timeline , "inner" ) ;
238- return yield * useContent ( ) ;
237+ return yield * content ( ) ;
239238 } ) ( ) ,
240239 ) ,
241240 } ;
0 commit comments