Fix duplicated name failure

This commit is contained in:
Pedro Silva 2022-11-09 17:05:05 +00:00
parent 8c9cc60a53
commit 4fde16d55b
1 changed files with 3 additions and 2 deletions

View File

@ -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,
})