From 03be90a37962d556ee7c614c3929479e4496d2c6 Mon Sep 17 00:00:00 2001
From: Mickael Jeanroy <mickael.jeanroy@gmail.com>
Date: Thu, 1 Aug 2019 19:06:57 +0200
Subject: [PATCH] chore: add missing test

---
 test/license-plugin.spec.js | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/test/license-plugin.spec.js b/test/license-plugin.spec.js
index 65ff4cb9..6cc17332 100644
--- a/test/license-plugin.spec.js
+++ b/test/license-plugin.spec.js
@@ -661,6 +661,19 @@ describe('LicensePlugin', () => {
     ]));
   });
 
+  it('should fail to prepend banner if comment style option is unknown', () => {
+    const instance = new LicensePlugin({
+      banner: {
+        file: path.join(__dirname, 'fixtures', 'banner.txt'),
+        commentStyle: 'foobar',
+      },
+    });
+
+    expect(() => instance.prependBanner('var foo = 0;')).toThrow(new Error(
+        'Unknown comment style foobar, please use one of: regular,ignored,slash,none'
+    ));
+  });
+
   it('should prepend banner to bundle and create sourceMap', () => {
     const instance = new LicensePlugin({
       banner: {