We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0de6892 commit 25c90f9Copy full SHA for 25c90f9
packages/webpack-plugin/src/__tests__/css-loader.test.ts
@@ -0,0 +1,16 @@
1
+import { getCss } from '@devup-ui/wasm'
2
+
3
+import devupUICssLoader from '../css-loader'
4
5
+vi.mock('@devup-ui/wasm')
6
7
+describe('devupUICssLoader', () => {
8
+ it('should invoke callback', () => {
9
+ vi.mocked(getCss).mockReturnValue('css')
10
+ const callback = vi.fn()
11
+ devupUICssLoader.bind({
12
+ callback,
13
+ } as any)(Buffer.from(''), '')
14
+ expect(callback).toBeCalledWith(null, 'css')
15
+ })
16
+})
0 commit comments