random client name #109
This commit is contained in:
@@ -112,6 +112,7 @@ export function randomConfigs(user: string): Config {
|
||||
}
|
||||
|
||||
export function createClient<T extends Client>(json?: Partial<T>): Client {
|
||||
defaultClient.name = RandomUtil.randomSeq(8)
|
||||
const defaultObject: Client = { ...defaultClient, ...(json || {}) }
|
||||
return defaultObject
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user