| 1 |
package slack |
| 2 |
|
| 3 |
import ( |
| 4 |
"testing" |
| 5 |
|
| 6 |
"github.com/stretchr/testify/assert" |
| 7 |
) |
| 8 |
|
| 9 |
func TestNewBlockMessage(t *testing.T) { |
| 10 |
|
| 11 |
dividerBlock := NewDividerBlock() |
| 12 |
blockMessage := NewBlockMessage(dividerBlock) |
| 13 |
|
| 14 |
assert.Equal(t, len(blockMessage.Msg.Blocks.BlockSet), 1) |
| 15 |
|
| 16 |
} |