File tree Expand file tree Collapse file tree 2 files changed +0
-50
lines changed
Expand file tree Collapse file tree 2 files changed +0
-50
lines changed Original file line number Diff line number Diff line change 11import { createPinia , getActivePinia , setActivePinia } from 'pinia'
22import { nanoid } from 'nanoid'
33import { nanoid as nanoidNS } from 'nanoid/non-secure'
4- import { nanoid as nanoidAsync } from 'nanoid/async'
54import { v1 , v4 } from 'uuid'
65import type { Mock } from 'vitest'
76import { expect , vi } from 'vitest'
@@ -82,10 +81,6 @@ export function mockNanoIdNS (ids: any[]): void {
8281 ids . forEach ( id => ( nanoidNS as Mock ) . mockImplementationOnce ( ( ) => id ) )
8382}
8483
85- export function mockNanoIdAsync ( ids : any [ ] ) : void {
86- ids . forEach ( id => ( nanoidAsync as Mock ) . mockImplementationOnce ( ( ) => id ) )
87- }
88-
8984export function mockUuidV1 ( ids : any [ ] ) : void {
9085 ids . forEach ( id => ( v1 as Mock ) . mockImplementationOnce ( ( ) => id ) )
9186}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments