mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add examples to api (#5331)
Co-authored-by: Dean Sheather <dean@deansheather.com>
This commit is contained in:
co-authored by
Dean Sheather
parent
6cc864c048
commit
ca0374b94f
@@ -27,6 +27,7 @@ func TestTemplate(t *testing.T) {
|
||||
assert.NotEmpty(t, eg.Name, "example name should not be empty")
|
||||
assert.NotEmpty(t, eg.Description, "example description should not be empty")
|
||||
assert.NotEmpty(t, eg.Markdown, "example markdown should not be empty")
|
||||
assert.NotNil(t, eg.Tags, "example tags should not be nil, should be empty array if no tags")
|
||||
_, err := examples.Archive(eg.ID)
|
||||
assert.NoError(t, err, "error archiving example")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user