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