Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(function () {
this.sandbox.stub(stripesModuleParser, 'parseAllModules').returns({ config: 'something', metadata: 'something' });
this.sandbox.stub(VirtualModulesPlugin.prototype, 'writeModule').returns({});
this.sandbox.stub(stripesSerialize, 'serializeWithRequire').returns({});
this.sut = new StripesConfigPlugin(mockConfig);
compilerStub.plugins = [];
const translationPlugin = new StripesTranslationsPlugin({ config: {} });
translationPlugin.allFiles = { en: '/translations/stripes-core/en.json' };
compilerStub.options.plugins.push(translationPlugin);
const brandingPlugin = new StripesBrandingPlugin({});
brandingPlugin.serializedBranding = JSON.stringify({ logo: { alt: 'Future Of Libraries Is Open' } });
compilerStub.options.plugins.push(brandingPlugin);
this.sut.apply(compilerStub);
});