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 1
1
import { createPinia , getActivePinia , setActivePinia } from 'pinia'
2
2
import { nanoid } from 'nanoid'
3
3
import { nanoid as nanoidNS } from 'nanoid/non-secure'
4
- import { nanoid as nanoidAsync } from 'nanoid/async'
5
4
import { v1 , v4 } from 'uuid'
6
5
import type { Mock } from 'vitest'
7
6
import { expect , vi } from 'vitest'
@@ -82,10 +81,6 @@ export function mockNanoIdNS (ids: any[]): void {
82
81
ids . forEach ( id => ( nanoidNS as Mock ) . mockImplementationOnce ( ( ) => id ) )
83
82
}
84
83
85
- export function mockNanoIdAsync ( ids : any [ ] ) : void {
86
- ids . forEach ( id => ( nanoidAsync as Mock ) . mockImplementationOnce ( ( ) => id ) )
87
- }
88
-
89
84
export function mockUuidV1 ( ids : any [ ] ) : void {
90
85
ids . forEach ( id => ( v1 as Mock ) . mockImplementationOnce ( ( ) => id ) )
91
86
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments