File: block_test.go

package info (click to toggle)
golang-github-slack-go-slack 0.11.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,720 kB
  • sloc: makefile: 54
file content (16 lines) | stat: -rw-r--r-- 264 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package slack

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestNewBlockMessage(t *testing.T) {

	dividerBlock := NewDividerBlock()
	blockMessage := NewBlockMessage(dividerBlock)

	assert.Equal(t, len(blockMessage.Msg.Blocks.BlockSet), 1)

}