Debian Codegraph @

block_input_test.go

raw symbols SCIP
1 package slack
2
3 import (
4 "testing"
5
6 "github.com/stretchr/testify/assert"
7 )
8
9 func TestNewInputBlock(t *testing.T) {
10 label := NewTextBlockObject("plain_text", "label", false, false)
11 element := NewDatePickerBlockElement("action_id")
12 hint := NewTextBlockObject("plain_text", "hint", false, false)
13 inputBlock := NewInputBlock("test", label, hint, element)
14 assert.Equal(t, string(inputBlock.Type), "input")
15 assert.Equal(t, inputBlock.BlockID, "test")
16 assert.Equal(t, inputBlock.Label, label)
17 assert.Equal(t, inputBlock.Element, element)
18 }