diff --git a/types/workbox-webpack-plugin/tsconfig.json b/types/workbox-webpack-plugin/tsconfig.json index cabf425dbe..0b25eabf98 100644 --- a/types/workbox-webpack-plugin/tsconfig.json +++ b/types/workbox-webpack-plugin/tsconfig.json @@ -18,6 +18,6 @@ }, "files": [ "index.d.ts", - "rx-node-tests.ts" + "workbox-tests.ts" ] } \ No newline at end of file diff --git a/types/workbox-webpack-plugin/tslint.json b/types/workbox-webpack-plugin/tslint.json index e595b70d63..f93cf8562a 100644 --- a/types/workbox-webpack-plugin/tslint.json +++ b/types/workbox-webpack-plugin/tslint.json @@ -1,3 +1,3 @@ { - "extends": "dtslint/dt.json", + "extends": "dtslint/dt.json" } diff --git a/types/workbox-webpack-plugin/workbox-tests.ts b/types/workbox-webpack-plugin/workbox-tests.ts index 5d1ba8f272..0562d8f797 100644 --- a/types/workbox-webpack-plugin/workbox-tests.ts +++ b/types/workbox-webpack-plugin/workbox-tests.ts @@ -1,15 +1,15 @@ -import { GenerateSW, InjectManifest } from './index' +import { GenerateSW, InjectManifest } from './index'; // GenerateSW { - let plugin: GenerateSW + let plugin: GenerateSW; // No options object - plugin = new GenerateSW() + plugin = new GenerateSW(); // Empty options object - plugin = new GenerateSW({}) + plugin = new GenerateSW({}); // With all of the examples plugin = new GenerateSW({ @@ -120,24 +120,24 @@ import { GenerateSW, InjectManifest } from './index' const manifest = originalManifest.filter( (entry) => entry.url !== 'ignored.html'); // Optionally, set warning messages. - const warnings = []; - return {manifest, warnings}; + const warnings = ['warning']; + return {manifest, warnings: [] }; } ] - }) + }); } // InjectManifest { - let plugin: InjectManifest + let plugin: InjectManifest; // No options object - plugin = new InjectManifest() + plugin = new InjectManifest(); // Minimal options object (swSrc is required) plugin = new InjectManifest({ swSrc: 'service-worker.js' - }) + }); // With all of the examples plugin = new InjectManifest({ @@ -182,9 +182,9 @@ import { GenerateSW, InjectManifest } from './index' const manifest = originalManifest.filter( (entry) => entry.url !== 'ignored.html'); // Optionally, set warning messages. - const warnings = []; + const warnings = ['warning']; return {manifest, warnings}; } ] - }) + }); } \ No newline at end of file