New constructs a codersdk client connected to an in-memory Enterprise API instance.
(t *testing.T, options *Options)
| 80 | |
| 81 | // New constructs a codersdk client connected to an in-memory Enterprise API instance. |
| 82 | func New(t *testing.T, options *Options) (*codersdk.Client, codersdk.CreateFirstUserResponse) { |
| 83 | client, _, _, user := NewWithAPI(t, options) |
| 84 | return client, user |
| 85 | } |
| 86 | |
| 87 | func NewWithDatabase(t *testing.T, options *Options) (*codersdk.Client, database.Store, codersdk.CreateFirstUserResponse) { |
| 88 | client, _, api, user := NewWithAPI(t, options) |