mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-27 13:48:56 +08:00
27 lines
494 B
Go
27 lines
494 B
Go
package joystick
|
|
|
|
import (
|
|
. "github.com/onsi/ginkgo"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
var _ = Describe("JoystickDriver", func() {
|
|
var (
|
|
d *JoystickDriver
|
|
)
|
|
|
|
BeforeEach(func() {
|
|
d = NewJoystickDriver(NewJoystickAdaptor("bot"), "bot", "/dev/null")
|
|
})
|
|
|
|
PIt("Must be able to Start", func() {
|
|
Expect(d.Start()).To(Equal(true))
|
|
})
|
|
PIt("Must be able to Init", func() {
|
|
Expect(d.Init()).To(Equal(true))
|
|
})
|
|
PIt("Must be able to Halt", func() {
|
|
Expect(d.Halt()).To(Equal(true))
|
|
})
|
|
})
|