Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix
  • Loading branch information
mtojek committed Mar 6, 2023
commit 0813255810a4817d1cdb7f215211da3be30dde4b
5 changes: 5 additions & 0 deletions site/src/testHelpers/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ export const MockTemplateVersionParameter1: TypesGen.TemplateVersionParameter =
mutable: true,
icon: "/icon/folder.svg",
options: [],
required: true,
}

export const MockTemplateVersionParameter2: TypesGen.TemplateVersionParameter =
Expand All @@ -746,6 +747,7 @@ export const MockTemplateVersionParameter2: TypesGen.TemplateVersionParameter =
validation_min: 1,
validation_max: 3,
validation_monotonic: "increasing",
required: true,
}

export const MockTemplateVersionParameter3: TypesGen.TemplateVersionParameter =
Expand All @@ -760,6 +762,7 @@ export const MockTemplateVersionParameter3: TypesGen.TemplateVersionParameter =
options: [],
validation_error: "No way!",
validation_regex: "^[a-z]{3}$",
required: true,
}

export const MockTemplateVersionParameter4: TypesGen.TemplateVersionParameter =
Expand All @@ -772,6 +775,7 @@ export const MockTemplateVersionParameter4: TypesGen.TemplateVersionParameter =
mutable: false,
icon: "/icon/database.svg",
options: [],
required: true,
}

export const MockTemplateVersionParameter5: TypesGen.TemplateVersionParameter =
Expand All @@ -787,6 +791,7 @@ export const MockTemplateVersionParameter5: TypesGen.TemplateVersionParameter =
validation_min: 1,
validation_max: 10,
validation_monotonic: "decreasing",
required: true,
}

export const MockTemplateVersionVariable1: TypesGen.TemplateVersionVariable = {
Expand Down