Skip to content

Commit

Permalink
Bump to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
nasa9084 committed Mar 30, 2023
1 parent 444cf23 commit 09ad76f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
10 changes: 7 additions & 3 deletions DeviceVersion_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package switchbot
package switchbot_test

import "testing"
import (
"testing"

"github.com/nasa9084/go-switchbot/v3"
)

func TestDeviceVersion(t *testing.T) {
t.Run("UnmarshalJSON", func(t *testing.T) {
Expand All @@ -18,7 +22,7 @@ func TestDeviceVersion(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
var is DeviceVersion
var is switchbot.DeviceVersion
if err := is.UnmarshalJSON([]byte(tt.args.json)); (err != nil) != tt.wantErr {
t.Errorf("UnmarshalJSON() error = %v, wantErr %v", err, tt.wantErr)
}
Expand Down
2 changes: 1 addition & 1 deletion device_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"time"

"github.com/google/go-cmp/cmp"
"github.com/nasa9084/go-switchbot/v2"
"github.com/nasa9084/go-switchbot/v3"
)

// https://github.com/OpenWonderLabs/SwitchBotAPI/blob/7a68353d84d07d439a11cb5503b634f24302f733/README.md#get-all-devices
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/nasa9084/go-switchbot/v2"
"github.com/nasa9084/go-switchbot/v3"
)

func ExamplePrintPhysicalDevices() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/nasa9084/go-switchbot/v2
module github.com/nasa9084/go-switchbot/v3

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion scene_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/nasa9084/go-switchbot/v2"
"github.com/nasa9084/go-switchbot/v3"
)

// https://github.com/OpenWonderLabs/SwitchBotAPI/blob/7a68353d84d07d439a11cb5503b634f24302f733/README.md#get-all-scenes
Expand Down
2 changes: 1 addition & 1 deletion webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/nasa9084/go-switchbot/v2"
"github.com/nasa9084/go-switchbot/v3"
)

func TestWebhookSetup(t *testing.T) {
Expand Down

0 comments on commit 09ad76f

Please sign in to comment.