Skip to content

Commit

Permalink
fix parseActions test
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelemusiani committed Jul 29, 2024
1 parent fdac72e commit 5f2556a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions model/parse_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package model

import (
"strings"
"testing"
)

func TestActions(t *testing.T) {
reader := strings.NewReader(`{
reader := []byte(`{
"start": {
"type": "message",
"data": {
Expand All @@ -15,6 +14,12 @@ func TestActions(t *testing.T) {
}
}`)

var err error
Degrees, err = ParseDegrees()
if err != nil {
t.Fatal(err)
}

actions, err := ParseActionsBytes(reader)
t.Log(actions)
if err != nil {
Expand Down

0 comments on commit 5f2556a

Please sign in to comment.