1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-14 19:29:32 +08:00
hybridgroup.gobot/platforms/firmata/tcp_firmata_adaptor_test.go
Thomas Kohler 865e724af0
Build(v2): revert move to v2 subfolder (#932)
* revert move to v2 subfolder
* fix CI and adjust CHANGELOG
2023-05-29 19:23:28 +02:00

22 lines
383 B
Go

package firmata
import (
"strings"
"testing"
"gobot.io/x/gobot/v2"
"gobot.io/x/gobot/v2/gobottest"
)
var _ gobot.Adaptor = (*TCPAdaptor)(nil)
func initTestTCPAdaptor() *TCPAdaptor {
a := NewTCPAdaptor("localhost:4567")
return a
}
func TestFirmataTCPAdaptor(t *testing.T) {
a := initTestTCPAdaptor()
gobottest.Assert(t, strings.HasPrefix(a.Name(), "TCPFirmata"), true)
}