mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
This implements a simple form for creating projects:  Fixes #65
32 lines
682 B
TypeScript
32 lines
682 B
TypeScript
import { User } from "../contexts/UserContext"
|
|
import { Provisioner, Organization, Project } from "../api"
|
|
|
|
export const MockUser: User = {
|
|
id: "test-user-id",
|
|
username: "TestUser",
|
|
email: "test@coder.com",
|
|
created_at: "",
|
|
}
|
|
|
|
export const MockProject: Project = {
|
|
id: "project-id",
|
|
created_at: "",
|
|
updated_at: "",
|
|
organization_id: "test-org",
|
|
name: "Test Project",
|
|
provisioner: "test-provisioner",
|
|
active_version_id: "",
|
|
}
|
|
|
|
export const MockProvisioner: Provisioner = {
|
|
id: "test-provisioner",
|
|
name: "Test Provisioner",
|
|
}
|
|
|
|
export const MockOrganization: Organization = {
|
|
id: "test-org",
|
|
name: "Test Organization",
|
|
created_at: "",
|
|
updated_at: "",
|
|
}
|