Skip to content

Commit cfa15b9

Browse files
authored
Merge pull request #102 from lejenhan/template-descriptions
Added missing descriptions to template function tests
2 parents 420813a + 56aad0a commit cfa15b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/core/template-function.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ describe("template function", () => {
204204
`${REQUEST_INIT_ERROR}: ID with value "1" already exists`
205205
);
206206
e(
207-
"",
207+
"throws an error if passed duplicate numeric IDs for the RequestInit objects",
208208
() =>
209209
compile(createTestObj2(`{{#r src="${BASE_URL}/api/test"}}{{/r}}`))([
210210
{ id: 1, value: {} },
@@ -300,7 +300,7 @@ describe("template function", () => {
300300
`${REQUEST_COMPONENT_ERROR}: Failed to activate or detect the indicator`
301301
);
302302
e(
303-
"",
303+
"throws an error if interval is used with memoized request",
304304
() =>
305305
compile(
306306
createTestObj2(
@@ -310,7 +310,7 @@ describe("template function", () => {
310310
`${REQUEST_COMPONENT_ERROR}: The "${INTERVAL}" property does not work with repetiton mode yet`
311311
);
312312
e(
313-
"",
313+
"throws an error if interval is passed as a string instead of a number",
314314
() =>
315315
compile(
316316
createTestObj2(
@@ -365,7 +365,7 @@ describe("template function", () => {
365365
'<div><button id="increment">Click</button><!--hmpl0--></div>'
366366
);
367367
eq(
368-
"",
368+
"Should render request block with indicators and placeholder on initial load",
369369
compile(
370370
createTestObj2(
371371
`<button id="increment">Click</button>{{#r src="/api/test" after="click:#increment"}}

0 commit comments

Comments
 (0)