Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('calls cssVars() with custom config if given one', () => {
const customConfig = {
testsAreGood: true,
};
spyOn(cssVars, 'default');
runCssVarsPolyfill(customConfig);
expect(cssVars.default).toHaveBeenCalledWith(customConfig);
});
it('calls cssVars() with default config', () => {
spyOn(cssVars, 'default');
runCssVarsPolyfill();
expect(cssVars.default).toHaveBeenCalledWith(cssVarsDefaultConfig);
});