Skip to content

test: correct pkg used in test cases #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion testdata/enums/enums.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package codersdk
package enums

type (
EnumString string
Expand Down
8 changes: 4 additions & 4 deletions testdata/enums/enums.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
// Code generated by 'guts'. DO NOT EDIT.

// From codersdk/enums.go
// From enums/enums.go
export enum Audience {
Team = "team",
Tenant = "tenant",
World = "world"
}

// From codersdk/enums.go
// From enums/enums.go
export enum EnumInt {
EnumNumBar = 10,
EnumNumFoo = 5
}

// From codersdk/enums.go
// From enums/enums.go
export type EnumSliceType = readonly EnumString[];

// From codersdk/enums.go
// From enums/enums.go
export enum EnumString {
EnumBar = "bar",
EnumBaz = "baz",
Expand Down
2 changes: 1 addition & 1 deletion testdata/enumtypes/enumtypes.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package codersdk
package enumtypes

type (
EnumString string
Expand Down
8 changes: 4 additions & 4 deletions testdata/enumtypes/enumtypes.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// Code generated by 'guts'. DO NOT EDIT.

// From codersdk/enumtypes.go
// From enumtypes/enumtypes.go
export type Audience = "team" | "tenant" | "world";

export const Audiences: Audience[] = ["team", "tenant", "world"];

// From codersdk/enumtypes.go
// From enumtypes/enumtypes.go
export type EnumInt = 10 | 5;

export const EnumInts: EnumInt[] = [10, 5];

// From codersdk/enumtypes.go
// From enumtypes/enumtypes.go
export type EnumSliceType = readonly EnumString[];

// From codersdk/enumtypes.go
// From enumtypes/enumtypes.go
export type EnumString = "bar" | "baz" | "foo" | "qux";

export const EnumStrings: EnumString[] = ["bar", "baz", "foo", "qux"];