mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-27 13:48:56 +08:00
27 lines
493 B
Go
27 lines
493 B
Go
![]() |
package gobotJoystick
|
||
|
|
||
|
import (
|
||
|
. "github.com/onsi/ginkgo"
|
||
|
. "github.com/onsi/gomega"
|
||
|
)
|
||
|
|
||
|
var _ = Describe("JoystickDriver", func() {
|
||
|
var (
|
||
|
driver *JoystickDriver
|
||
|
)
|
||
|
|
||
|
BeforeEach(func() {
|
||
|
driver = NewJoystick(new(JoystickAdaptor))
|
||
|
})
|
||
|
|
||
|
PIt("Must be able to Start", func() {
|
||
|
Expect(driver.Start()).To(Equal(true))
|
||
|
})
|
||
|
PIt("Must be able to Init", func() {
|
||
|
Expect(driver.Init()).To(Equal(true))
|
||
|
})
|
||
|
PIt("Must be able to Halt", func() {
|
||
|
Expect(driver.Halt()).To(Equal(true))
|
||
|
})
|
||
|
})
|