Fix duplicated name failure
This commit is contained in:
parent
8c9cc60a53
commit
4fde16d55b
|
@ -1,11 +1,12 @@
|
|||
import generator from "../../generator"
|
||||
import { Application } from "@budibase/server/api/controllers/public/mapping/types"
|
||||
|
||||
|
||||
const generate = (
|
||||
overrides: Partial<Application> = {}
|
||||
): Partial<Application> => ({
|
||||
name: generator.word(),
|
||||
url: `/${generator.word()}`,
|
||||
name: generator.word() + generator.hash(),
|
||||
url: `/${generator.word() + generator.hash()}`,
|
||||
...overrides,
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue