@@ -4,9 +4,9 @@ import {BaseHrefWebpackPlugin} from './base-href-webpack-plugin';
44
55function mockCompiler ( indexHtml : string , callback : Function ) {
66 return {
7- plugin : function ( event : any , compilerCallback : Function ) {
7+ plugin : function ( _event : any , compilerCallback : Function ) {
88 const compilation = {
9- plugin : function ( hook : any , compilationCallback : Function ) {
9+ plugin : function ( _hook : any , compilationCallback : Function ) {
1010 const htmlPluginData = {
1111 html : indexHtml
1212 } ;
@@ -29,15 +29,15 @@ describe('base href webpack plugin', () => {
2929 it ( 'should do nothing when baseHref is null' , ( ) => {
3030 const plugin = new BaseHrefWebpackPlugin ( { baseHref : null } ) ;
3131
32- const compiler = mockCompiler ( html , ( x : any , htmlPluginData : any ) => {
32+ const compiler = mockCompiler ( html , ( _x : any , htmlPluginData : any ) => {
3333 expect ( htmlPluginData . html ) . toEqual ( '<body><head></head></body>' ) ;
3434 } ) ;
3535 plugin . apply ( compiler ) ;
3636 } ) ;
3737
3838 it ( 'should insert base tag when not exist' , function ( ) {
3939 const plugin = new BaseHrefWebpackPlugin ( { baseHref : '/' } ) ;
40- const compiler = mockCompiler ( html , ( x : any , htmlPluginData : any ) => {
40+ const compiler = mockCompiler ( html , ( _x : any , htmlPluginData : any ) => {
4141 expect ( htmlPluginData . html ) . toEqual ( oneLineTrim `
4242 <html>
4343 <head><base href="/"></head>
@@ -55,7 +55,7 @@ describe('base href webpack plugin', () => {
5555 const compiler = mockCompiler ( oneLineTrim `
5656 <head><base href="/" target="_blank"></head>
5757 <body></body>
58- ` , ( x : any , htmlPluginData : any ) => {
58+ ` , ( _x : any , htmlPluginData : any ) => {
5959 expect ( htmlPluginData . html ) . toEqual ( oneLineTrim `
6060 <head><base href="/myUrl/" target="_blank"></head>
6161 <body></body>
0 commit comments