File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 4
4
"fmt"
5
5
"time"
6
6
7
- "github.com/fatih/color"
8
7
"github.com/spf13/cobra"
9
8
configure_event "github.com/twitchdev/twitch-cli/internal/events/configure"
10
9
"github.com/twitchdev/twitch-cli/internal/events/trigger"
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import (
12
12
13
13
"github.com/twitchdev/twitch-cli/internal/models"
14
14
"github.com/twitchdev/twitch-cli/test_setup"
15
+ "github.com/twitchdev/twitch-cli/internal/util"
15
16
)
16
17
17
18
func TestRefireEvent (t * testing.T ) {
@@ -24,8 +25,11 @@ func TestRefireEvent(t *testing.T) {
24
25
}))
25
26
defer ts .Close ()
26
27
28
+ var eventMessageID = util .RandomGUID ();
29
+
27
30
params := TriggerParameters {
28
31
Event : "gift" ,
32
+ EventMessageID : eventMessageID ,
29
33
Transport : models .TransportWebhook ,
30
34
IsAnonymous : false ,
31
35
FromUser : "" ,
@@ -47,7 +51,7 @@ func TestRefireEvent(t *testing.T) {
47
51
err = json .Unmarshal ([]byte (response ), & body )
48
52
a .Nil (err )
49
53
50
- json , err := RefireEvent (body . Subscription . ID , params )
54
+ json , err := RefireEvent (eventMessageID , params )
51
55
a .Nil (err )
52
56
a .Equal (response , json )
53
57
}
You can’t perform that action at this time.
0 commit comments