@@ -57,7 +57,7 @@ func Test_Apps_Link(t *testing.T) {
5757 testutil .TableTestCommand (t , testutil.CommandTests {
5858 "saves information about the provided deployed app" : {
5959 Setup : func (t * testing.T , ctx context.Context , cm * shared.ClientsMock , cf * shared.ClientFactory ) {
60- cm .AuthInterface .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
60+ cm .Auth .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
6161 mockLinkSlackAuth2 ,
6262 mockLinkSlackAuth1 ,
6363 }, nil )
@@ -114,7 +114,7 @@ func Test_Apps_Link(t *testing.T) {
114114 },
115115 "saves information about the provided local app" : {
116116 Setup : func (t * testing.T , ctx context.Context , cm * shared.ClientsMock , cf * shared.ClientFactory ) {
117- cm .AuthInterface .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
117+ cm .Auth .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
118118 mockLinkSlackAuth2 ,
119119 mockLinkSlackAuth1 ,
120120 }, nil )
@@ -173,7 +173,7 @@ func Test_Apps_Link(t *testing.T) {
173173 },
174174 "avoids overwriting an app saved in json without confirmation" : {
175175 Setup : func (t * testing.T , ctx context.Context , cm * shared.ClientsMock , cf * shared.ClientFactory ) {
176- cm .AuthInterface .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
176+ cm .Auth .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
177177 mockLinkSlackAuth1 ,
178178 mockLinkSlackAuth2 ,
179179 }, nil )
@@ -242,7 +242,7 @@ func Test_Apps_Link(t *testing.T) {
242242 },
243243 "avoids overwriting a matching app id for the team without confirmation" : {
244244 Setup : func (t * testing.T , ctx context.Context , cm * shared.ClientsMock , cf * shared.ClientFactory ) {
245- cm .AuthInterface .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
245+ cm .Auth .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
246246 mockLinkSlackAuth1 ,
247247 mockLinkSlackAuth2 ,
248248 }, nil )
@@ -317,7 +317,7 @@ func Test_Apps_Link(t *testing.T) {
317317 },
318318 "completes overwriting an app saved in json with confirmation" : {
319319 Setup : func (t * testing.T , ctx context.Context , cm * shared.ClientsMock , cf * shared.ClientFactory ) {
320- cm .AuthInterface .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
320+ cm .Auth .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
321321 mockLinkSlackAuth1 ,
322322 mockLinkSlackAuth2 ,
323323 }, nil )
@@ -385,7 +385,7 @@ func Test_Apps_Link(t *testing.T) {
385385 },
386386 "refuses to write an app with app id not existing upstream" : {
387387 Setup : func (t * testing.T , ctx context.Context , cm * shared.ClientsMock , cf * shared.ClientFactory ) {
388- cm .AuthInterface .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
388+ cm .Auth .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
389389 mockLinkSlackAuth1 ,
390390 mockLinkSlackAuth2 ,
391391 }, nil )
@@ -433,7 +433,7 @@ func Test_Apps_Link(t *testing.T) {
433433 },
434434 "accepting manifest source prompt should save information about the provided deployed app" : {
435435 Setup : func (t * testing.T , ctx context.Context , cm * shared.ClientsMock , cf * shared.ClientFactory ) {
436- cm .AuthInterface .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
436+ cm .Auth .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
437437 mockLinkSlackAuth2 ,
438438 mockLinkSlackAuth1 ,
439439 }, nil )
@@ -540,7 +540,7 @@ func Test_Apps_Link(t *testing.T) {
540540 },
541541 "manifest source prompt should not display for Run-on-Slack apps with local manifest source" : {
542542 Setup : func (t * testing.T , ctx context.Context , cm * shared.ClientsMock , cf * shared.ClientFactory ) {
543- cm .AuthInterface .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
543+ cm .Auth .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
544544 mockLinkSlackAuth1 ,
545545 mockLinkSlackAuth2 ,
546546 }, nil )
@@ -617,7 +617,7 @@ func Test_Apps_Link(t *testing.T) {
617617 },
618618 "manifest source prompt should display for GBP apps with local manifest source" : {
619619 Setup : func (t * testing.T , ctx context.Context , cm * shared.ClientsMock , cf * shared.ClientFactory ) {
620- cm .AuthInterface .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
620+ cm .Auth .On ("Auths" , mock .Anything ).Return ([]types.SlackAuth {
621621 mockLinkSlackAuth1 ,
622622 mockLinkSlackAuth2 ,
623623 }, nil )
0 commit comments