import { loadSVGFromString } from './loadSVGFromString';
describe('getCSSRules', () => {
test('can load svgs with style tags with import statement', async () => {
const loaded =
await loadSVGFromString(``);
expect(loaded.objects).toHaveLength(2);
});
test('can load svgs with style tags with nested at-rules', async () => {
const loaded = await loadSVGFromString(`
`);
expect(loaded.objects).toHaveLength(1);
});
});