@@ -231,7 +231,7 @@ describe('index.js', () => {
231231 } ) ;
232232
233233 describe ( 'file operations' , ( ) => {
234- test ( 'renderFile should render file template ' , ( done ) => {
234+ test ( 'should render template file with data ' , ( done ) => {
235235 const templatePath = path . join ( testDir , 'test.html' ) ;
236236 fs . writeFileSync ( templatePath , 'Hello <%=name%>!' ) ;
237237
@@ -243,7 +243,7 @@ describe('index.js', () => {
243243 } ) ;
244244 } ) ;
245245
246- test ( 'compileFile should compile file template ' , ( done ) => {
246+ test ( 'should compile template file into function ' , ( done ) => {
247247 const templatePath = path . join ( testDir , 'test.html' ) ;
248248 fs . writeFileSync ( templatePath , 'Hello <%=name%>!' ) ;
249249
@@ -275,7 +275,7 @@ describe('index.js', () => {
275275 } ) . toThrow ( ) ;
276276 } ) ;
277277
278- test ( 'should handle invalid variable references gracefully ' , ( ) => {
278+ test ( 'should throw error for invalid nested property access ' , ( ) => {
279279 const template = '<%=a.b.c.d%>' ;
280280 expect ( ( ) => {
281281 cbT . render ( template , { a : { } } ) ;
@@ -313,7 +313,7 @@ describe('index.js', () => {
313313 } ) ;
314314
315315 describe ( 'default parameters' , ( ) => {
316- test ( 'compileFile should work without options parameter' , ( done ) => {
316+ test ( 'should work without options parameter for compileFile ' , ( done ) => {
317317 const templatePath = path . join ( testDir , 'test-no-options.html' ) ;
318318 fs . writeFileSync ( templatePath , 'Hello <%=name%>!' ) ;
319319
@@ -327,7 +327,7 @@ describe('index.js', () => {
327327 } ) ;
328328 } ) ;
329329
330- test ( 'renderFile should work without options parameter' , ( done ) => {
330+ test ( 'should work without options parameter for renderFile ' , ( done ) => {
331331 const templatePath = path . join ( testDir , 'test-no-options2.html' ) ;
332332 fs . writeFileSync ( templatePath , 'Hello <%=name%>!' ) ;
333333
@@ -339,7 +339,7 @@ describe('index.js', () => {
339339 } ) ;
340340 } ) ;
341341
342- test ( 'compileFile should use default options when explicitly passed undefined' , ( done ) => {
342+ test ( 'should use default options in compileFile when undefined' , ( done ) => {
343343 const templatePath = path . join ( testDir , 'test-undefined-options.html' ) ;
344344 fs . writeFileSync ( templatePath , 'Hello <%=name%>!' ) ;
345345
@@ -354,7 +354,7 @@ describe('index.js', () => {
354354 } ) ;
355355 } ) ;
356356
357- test ( 'renderFile should use default options when explicitly passed undefined' , ( done ) => {
357+ test ( 'should use default options in renderFile when undefined' , ( done ) => {
358358 const templatePath = path . join ( testDir , 'test-undefined-options2.html' ) ;
359359 fs . writeFileSync ( templatePath , 'Hello <%=name%>!' ) ;
360360
0 commit comments