Initial commit: gmTouringMiniApp project
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { vi } from 'vitest'
|
||||
import { unref } from 'vue'
|
||||
|
||||
const uniMock = {
|
||||
getStorageSync: vi.fn(),
|
||||
getSystemInfoSync: vi.fn(() => ({ uniPlatform: 'mp-weixin' })),
|
||||
setStorage: vi.fn(),
|
||||
showToast: vi.fn(),
|
||||
}
|
||||
|
||||
vi.stubGlobal('uni', uniMock)
|
||||
vi.stubGlobal('unref', unref)
|
||||
Reference in New Issue
Block a user