@@ -7,12 +7,10 @@ import { setActivePluginRegistry } from "../../plugins/runtime.js";
77import { createTestRegistry } from "../../test-utils/channel-plugins.js" ;
88import {
99 comparableChannelTargetsMatch ,
10- parseExplicitTargetForChannel ,
1110 parseExplicitTargetForLoadedChannel ,
12- resolveComparableTargetForChannel ,
13- resolveRouteTargetForChannel ,
11+ resolveComparableTargetForLoadedChannel ,
1412 resolveRouteTargetForLoadedChannel ,
15- } from "./target-parsing.js" ;
13+ } from "./target-parsing-loaded .js" ;
1614
1715function parseThreadedTargetForTest ( raw : string ) : {
1816 to : string ;
@@ -99,27 +97,27 @@ function setMinimalTargetParsingRegistry(): void {
9997 ) ;
10098}
10199
102- describe ( "parseExplicitTargetForChannel " , ( ) => {
100+ describe ( "parseExplicitTargetForLoadedChannel " , ( ) => {
103101 beforeEach ( ( ) => {
104102 setMinimalTargetParsingRegistry ( ) ;
105103 } ) ;
106104
107105 it ( "parses threaded targets via the registered channel plugin contract" , ( ) => {
108106 expect (
109- parseExplicitTargetForChannel ( "mock-threaded" , "threaded:group:room-a:topic:77" ) ,
107+ parseExplicitTargetForLoadedChannel ( "mock-threaded" , "threaded:group:room-a:topic:77" ) ,
110108 ) . toEqual ( {
111109 to : "room-a" ,
112110 threadId : 77 ,
113111 chatType : "group" ,
114112 } ) ;
115- expect ( parseExplicitTargetForChannel ( "mock-threaded" , "room-a" ) ) . toEqual ( {
113+ expect ( parseExplicitTargetForLoadedChannel ( "mock-threaded" , "room-a" ) ) . toEqual ( {
116114 to : "room-a" ,
117115 chatType : undefined ,
118116 } ) ;
119117 } ) ;
120118
121119 it ( "parses registered non-bundled channel targets via the active plugin contract" , ( ) => {
122- expect ( parseExplicitTargetForChannel ( "demo-target" , "team-room" ) ) . toEqual ( {
120+ expect ( parseExplicitTargetForLoadedChannel ( "demo-target" , "team-room" ) ) . toEqual ( {
123121 to : "TEAM-ROOM" ,
124122 chatType : "direct" ,
125123 } ) ;
@@ -131,7 +129,7 @@ describe("parseExplicitTargetForChannel", () => {
131129
132130 it ( "builds route targets from plugin-owned grammar" , ( ) => {
133131 expect (
134- resolveRouteTargetForChannel ( {
132+ resolveRouteTargetForLoadedChannel ( {
135133 channel : "mock-threaded" ,
136134 rawTarget : "threaded:group:room-a:topic:77" ,
137135 } ) ,
@@ -157,11 +155,11 @@ describe("parseExplicitTargetForChannel", () => {
157155 } ) ;
158156
159157 it ( "matches route targets when only the plugin grammar differs" , ( ) => {
160- const topicTarget = resolveRouteTargetForChannel ( {
158+ const topicTarget = resolveRouteTargetForLoadedChannel ( {
161159 channel : "mock-threaded" ,
162160 rawTarget : "threaded:room-a:topic:77" ,
163161 } ) ;
164- const bareTarget = resolveRouteTargetForChannel ( {
162+ const bareTarget = resolveRouteTargetForLoadedChannel ( {
165163 channel : "mock-threaded" ,
166164 rawTarget : "room-a" ,
167165 } ) ;
@@ -181,11 +179,11 @@ describe("parseExplicitTargetForChannel", () => {
181179 } ) ;
182180
183181 it ( "compares numeric and string thread ids through the shared route contract" , ( ) => {
184- const numericThread = resolveRouteTargetForChannel ( {
182+ const numericThread = resolveRouteTargetForLoadedChannel ( {
185183 channel : "mock-threaded" ,
186184 rawTarget : "threaded:room-a:topic:77" ,
187185 } ) ;
188- const stringThread = resolveRouteTargetForChannel ( {
186+ const stringThread = resolveRouteTargetForLoadedChannel ( {
189187 channel : "mock-threaded" ,
190188 rawTarget : "room-a" ,
191189 fallbackThreadId : "77" ,
@@ -200,11 +198,11 @@ describe("parseExplicitTargetForChannel", () => {
200198 } ) ;
201199
202200 it ( "keeps deprecated comparable target helpers as route wrappers" , ( ) => {
203- const numericThread = resolveComparableTargetForChannel ( {
201+ const numericThread = resolveComparableTargetForLoadedChannel ( {
204202 channel : "mock-threaded" ,
205203 rawTarget : "threaded:room-a:topic:77" ,
206204 } ) ;
207- const stringThread = resolveRouteTargetForChannel ( {
205+ const stringThread = resolveRouteTargetForLoadedChannel ( {
208206 channel : "mock-threaded" ,
209207 rawTarget : "room-a" ,
210208 fallbackThreadId : "77" ,
0 commit comments