@@ -17,24 +17,28 @@ var source = require("fs")
1717const banner = parseBanner ( source )
1818const REGEXP_HASH = / ^ [ A - Z a - z 0 - 9 ] { 20 } $ /
1919
20- it ( "should interpolate file hash in bundle0 chunk" , ( ) => {
21- REGEXP_HASH . test ( banner [ "hash" ] ) . should . be . true ;
20+ it ( "should interpolate file hash in chunk banner " , ( ) => {
21+ REGEXP_HASH . test ( banner [ "hash" ] ) . should . be . true ;
2222} ) ;
2323
24- it ( "should interpolate chunkHash in bundle0 chunk" , ( ) => {
25- REGEXP_HASH . test ( banner [ "chunkhash" ] ) . should . be . true ;
24+ it ( "should interpolate chunkHash in chunk banner " , ( ) => {
25+ REGEXP_HASH . test ( banner [ "chunkhash" ] ) . should . be . true ;
2626} ) ;
2727
28- it ( "should interpolate name in bundle0 chunk" , ( ) => {
29- banner [ "name" ] . should . equal ( "banner" ) ;
28+ it ( "should interpolate name in chunk banner " , ( ) => {
29+ banner [ "name" ] . should . equal ( "dist/ banner" ) ;
3030} ) ;
3131
32- it ( "should interpolate extension in bundle0 chunk" , ( ) => {
33- banner [ "basename " ] . should . equal ( "banner.js" ) ;
32+ it ( "should interpolate basename in chunk banner " , ( ) => {
33+ banner [ "filebase " ] . should . equal ( "banner.js" ) ;
3434} ) ;
3535
36- it ( "should interpolate extension in bundle0 chunk" , ( ) => {
37- banner [ "query" ] . should . equal ( "" ) ;
36+ it ( "should interpolate query in chunk banner" , ( ) => {
37+ banner [ "query" ] . should . equal ( "value" ) ;
38+ } ) ;
39+
40+ it ( "should parse entry into basename" , ( ) => {
41+ banner [ "filebase" ] . should . not . equal ( "name" ) ;
3842} ) ;
3943
4044require . include ( "./test.js" ) ;
0 commit comments