@@ -183,7 +183,7 @@ describe("compile function", () => {
183183 `${ COMPILE_OPTIONS_ERROR } : The value of the property "${ DISALLOWED_TAGS } " must be an array`
184184 ) ;
185185 e (
186- `` ,
186+ `throws an error when the same binding target is used multiple times ` ,
187187 ( ) =>
188188 compile (
189189 createTestObj2 (
@@ -193,12 +193,12 @@ describe("compile function", () => {
193193 `${ REQUEST_COMPONENT_ERROR } : Duplicate binding target value "customTarget"`
194194 ) ;
195195 e (
196- `` ,
196+ `throws an error when bind value is not a string or object ` ,
197197 ( ) => compile ( createTestObj2 ( `{{#r src="/api/test" bind=1}}{{/r}}` ) ) ,
198198 `${ REQUEST_COMPONENT_ERROR } : The "${ BIND } " value must be a string or an object`
199199 ) ;
200200 e (
201- `` ,
201+ `throws an error when bind object contains unexpected properties ` ,
202202 ( ) =>
203203 compile (
204204 createTestObj2 (
@@ -208,20 +208,20 @@ describe("compile function", () => {
208208 `${ REQUEST_COMPONENT_ERROR } : Unexpected property "a"`
209209 ) ;
210210 e (
211- `` ,
211+ `throws an error when bind object is empty ` ,
212212 ( ) => compile ( createTestObj2 ( `{{#r src="/api/test" bind={} }}{{/r}}` ) ) ,
213213 `${ REQUEST_COMPONENT_ERROR } : The "${ BIND_TARGET } " property is missing`
214214 ) ;
215215 e (
216- `` ,
216+ `throws an error when bind target property is not a string ` ,
217217 ( ) =>
218218 compile (
219219 createTestObj2 ( `{{#r src="/api/test" bind={ target:1 } }}{{/r}}` )
220220 ) ,
221221 `${ REQUEST_COMPONENT_ERROR } : The "${ BIND_TARGET } " property should be a string`
222222 ) ;
223223 e (
224- `` ,
224+ `throws an error when bind prefix property is not a string ` ,
225225 ( ) =>
226226 compile (
227227 createTestObj2 (
@@ -231,23 +231,23 @@ describe("compile function", () => {
231231 `${ REQUEST_COMPONENT_ERROR } : The "${ BIND_PREFIX } " property should be a string`
232232 ) ;
233233 e (
234- `` ,
234+ `throws a render error when binding target is not defined in template ` ,
235235 ( ) =>
236236 compile (
237237 createTestObj2 ( `{{#r src="/api/test" bind="customTarget"}}{{/r}}` )
238238 ) ( ) ,
239239 `${ RENDER_ERROR } : Binding target "customTarget" not found`
240240 ) ;
241241 e (
242- `` ,
242+ `throws an error when binding target string contains spaces ` ,
243243 ( ) =>
244244 compile (
245245 createTestObj2 ( `{{#r src="/api/test" bind="custom Target"}}{{/r}}` )
246246 ) ( ) ,
247247 `${ REQUEST_COMPONENT_ERROR } : The binding target "custom Target" must not contain spaces`
248248 ) ;
249249 e (
250- `` ,
250+ `throws an error when binding target object property contains spaces ` ,
251251 ( ) =>
252252 compile (
253253 createTestObj2 (
@@ -257,7 +257,7 @@ describe("compile function", () => {
257257 `${ REQUEST_COMPONENT_ERROR } : The binding target "custom Target" must not contain spaces`
258258 ) ;
259259 e (
260- `` ,
260+ `throws a render error when binding source request is not found ` ,
261261 ( ) =>
262262 compile (
263263 createTestObj2 (
0 commit comments