| 1 | package slack |
| 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | |
| 6 | "github.com/stretchr/testify/assert" |
| 7 | ) |
| 8 | |
| 9 | func TestNewFileBlock(t *testing.T) { |
| 10 | fileBlock := NewFileBlock("test", "external_id", "source") |
| 11 | assert.Equal(t, string(fileBlock.Type), "file") |
| 12 | assert.Equal(t, fileBlock.BlockID, "test") |
| 13 | assert.Equal(t, fileBlock.ExternalID, "external_id") |
| 14 | assert.Equal(t, fileBlock.Source, "source") |
| 15 | } |