Skip to content

Commit

Permalink
🐛 fix: fix cssvar
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Oct 22, 2024
1 parent db511ef commit ac642b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functions/extractStaticStyle.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('extractStaticStyle', () => {
const item = result.find((i) => i.key === 'antd')!;
expect(item).toBeDefined();
expect(item.css).toMatch(/\.ant-/);
expect(item.tag).toMatch(/<style data-antd-version="[0-9]+\.[0-9]+\.[0-9]+">\s*/);
expect(item.tag).toMatch(/<style data-rc-order="prepend" data-rc-priority="-9999" data-antd-version="[0-9]+\.[0-9]+\.[0-9]+">\s*/);
});

// FIXME: 迁移到 vitest 后,不知道为什么 无法提取 extractStaticStyle 了
Expand Down

0 comments on commit ac642b7

Please sign in to comment.