@@ -23,9 +23,6 @@ import (
2323 "github.com/stretchr/testify/assert"
2424)
2525
26- func strPtr (s string ) * string { return & s }
27- func boolPtr (b bool ) * bool { return & b }
28-
2926func TestDeploySuccessText (t * testing.T ) {
3027 tests := map [string ]struct {
3128 app types.App
@@ -42,10 +39,10 @@ func TestDeploySuccessText(t *testing.T) {
4239 },
4340 },
4441 authSession : api.AuthSession {
45- UserName : strPtr ("slackbot" ),
46- UserID : strPtr ("USLACKBOT" ),
47- TeamName : strPtr ("speck" ),
48- TeamID : strPtr ("T001" ),
42+ UserName : new ("slackbot "),
43+ UserID : new ("USLACKBOT "),
44+ TeamName : new ("speck "),
45+ TeamID : new ("T001 "),
4946 },
5047 deployTime : "12.34" ,
5148 expected : []string {
@@ -63,12 +60,12 @@ func TestDeploySuccessText(t *testing.T) {
6360 },
6461 },
6562 authSession : api.AuthSession {
66- UserName : strPtr ("stub" ),
67- UserID : strPtr ("U111" ),
68- TeamName : strPtr ("spack" ),
69- TeamID : strPtr ("E002" ),
70- EnterpriseID : strPtr ("E002" ),
71- IsEnterpriseInstall : boolPtr ( true ),
63+ UserName : new ("stub "),
64+ UserID : new ("U111 "),
65+ TeamName : new ("spack "),
66+ TeamID : new ("E002 "),
67+ EnterpriseID : new ("E002 "),
68+ IsEnterpriseInstall : new ( bool ( true ) ),
7269 },
7370 deployTime : "8.05" ,
7471 expected : []string {
0 commit comments