1- import { Reactor , App , InPort , OutPort , StringUtil } from "../src/core/internal" ;
1+ import { Reactor , App , InPort , OutPort , dontIndent } from "../src/core/internal" ;
22
33class MyActor extends Reactor {
44 a = new InPort < { t : number } > ( this ) ;
@@ -18,7 +18,7 @@ class MyActor2 extends Reactor {
1818
1919describe ( "Test names for contained reactors" , ( ) => {
2020 class myApp extends App {
21- port : InPort < any > = new InPort < any > ( this ) ;
21+ port : InPort < unknown > = new InPort ( this ) ;
2222
2323 x = new MyActor ( this ) ;
2424
@@ -68,7 +68,7 @@ describe("Test names for contained reactors", () => {
6868
6969 it ( "graph before connect" , ( ) => {
7070 expect ( this . _getPrecedenceGraph ( ) . toString ( ) ) . toBe (
71- StringUtil . dontIndent `graph
71+ dontIndent `graph
7272 0["myApp.x[M0]"]
7373 1["myApp[M0]"]
7474 2["myApp.y[M0]"]
@@ -91,7 +91,7 @@ describe("Test names for contained reactors", () => {
9191
9292 it ( "graph after connect and before disconnect" , ( ) => {
9393 expect ( this . _getPrecedenceGraph ( ) . toString ( ) ) . toBe (
94- StringUtil . dontIndent `graph
94+ dontIndent `graph
9595 0["myApp.x.a"]
9696 1["myApp.y.b"]
9797 2["myApp.x[M0]"]
@@ -106,7 +106,7 @@ describe("Test names for contained reactors", () => {
106106 it ( "graph after disconnect" , ( ) => {
107107 this . _disconnect ( this . y . b , this . x . a ) ;
108108 expect ( this . _getPrecedenceGraph ( ) . toString ( ) ) . toBe (
109- StringUtil . dontIndent `graph
109+ dontIndent `graph
110110 0["myApp.x.a"]
111111 1["myApp.y.b"]
112112 2["myApp.x[M0]"]
0 commit comments