Files
NapCatQQ/.pnpm-store/v3/files/9b/148aa51617c7dd2d9a66b6a42d51cb009f79fb2725e38d6593f04db91676430f5840dd2bd1e4af94285fe64b1122fc8fb1b6af620e6d2082190679ea96b1b3
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

23 lines
497 B
Plaintext

import { glob, createGlobalStyles } from '../index';
import { css, setup } from 'goober';
jest.mock('goober', () => ({
css: jest.fn().mockReturnValue('css()')
}));
describe('global', () => {
beforeEach(() => {
css.mockClear();
});
it('type', () => {
expect(typeof glob).toEqual('function');
expect(typeof createGlobalStyles).toEqual('function');
});
it('glob', () => {
glob`a:b`;
expect(css).toBeCalledWith(['a:b']);
});
});