File: block_file_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 (15 lines) | stat: -rw-r--r-- 369 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package slack

import (
	"testing"

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

func TestNewFileBlock(t *testing.T) {
	fileBlock := NewFileBlock("test", "external_id", "source")
	assert.Equal(t, string(fileBlock.Type), "file")
	assert.Equal(t, fileBlock.BlockID, "test")
	assert.Equal(t, fileBlock.ExternalID, "external_id")
	assert.Equal(t, fileBlock.Source, "source")
}