@@ -428,11 +428,11 @@ describe('Extend', () => {
428
428
} ) ;
429
429
430
430
/*
431
- This plugin merges the locals from options.expressions.locals and the
431
+ This plugin used to merge the locals from options.expressions.locals and the
432
432
"locals" attribute into the options.expressions.locals property. Arrays in
433
- the attribute locals will be copied into options.expressions.locals and when
434
- the plugin is called again they will be merged again, doubling all array
435
- entries every time the plugin is called.
433
+ the attribute locals would be copied into options.expressions.locals and
434
+ when the plugin was called again they would be merged again, doubling all
435
+ array entries every time the plugin was called.
436
436
*/
437
437
it ( 'should not pollute options.expression.locals ' , async ( ) => {
438
438
mfs . writeFileSync ( './base.html' , `<div class="base">{{ list.join(", ") }}</div>` ) ;
@@ -452,8 +452,8 @@ describe('Extend', () => {
452
452
expect ( await init ( preHtml , options ) ) . toBe ( postHtml ) ;
453
453
expect ( options . expressions . locals ) . toStrictEqual ( { } ) ;
454
454
/*
455
- Since the entries in "list" have been merged with themselves, the content
456
- would be "One, Two, Three, One, Two, Three"
455
+ Since the entries in "list" would have been merged with themselves, the
456
+ content would have been "One, Two, Three, One, Two, Three"
457
457
*/
458
458
expect ( await init ( preHtml , options ) ) . toBe ( postHtml ) ;
459
459
} ) ;
0 commit comments