@@ -5,9 +5,6 @@ import Cmd from '../../../../src/commands/access/add.js'
5
5
import runCommand from '../../../helpers/runCommand.js'
6
6
import { personalApp , teamApp , teamFeatures } from '../../../helpers/stubs/get.js'
7
7
import { collaborators , teamAppCollaborators } from '../../../helpers/stubs/post.js'
8
- import expectOutput from '../../../helpers/utils/expectOutput.js'
9
- import tsheredoc from 'tsheredoc'
10
- const heredoc = tsheredoc . default
11
8
12
9
let apiGet : nock . Scope
13
10
let apiPost : nock . Scope
@@ -36,9 +33,7 @@ describe('heroku access:add', function () {
36
33
apiGet . done ( )
37
34
apiGetOrgFeatures . done ( )
38
35
apiPost . done ( )
39
- expectOutput ( stderr . output , heredoc ( `
40
- Adding [email protected] access to the app myapp with deploy, view permissions... done
41
- ` ) )
36
+ expect ( stderr . output ) . to . include ( 'Adding [email protected] access to the app myapp with deploy, view permissions... done' )
42
37
} )
43
38
44
39
it ( 'adds user to the app with permissions, and view is implicit' , async function ( ) {
@@ -52,10 +47,7 @@ describe('heroku access:add', function () {
52
47
apiGet . done ( )
53
48
apiGetOrgFeatures . done ( )
54
49
apiPost . done ( )
55
- expectOutput ( stderr . output , heredoc ( `
56
- Adding [email protected] access to the app myapp with deploy, view permissions...
57
- Adding [email protected] access to the app myapp with deploy, view permissions... done
58
- ` ) )
50
+ expect ( stderr . output ) . to . include ( 'Adding [email protected] access to the app myapp with deploy, view permissions... done' )
59
51
} )
60
52
61
53
it ( 'raises an error when permissions are not specified' , function ( ) {
@@ -93,10 +85,7 @@ describe('heroku access:add', function () {
93
85
apiGet . done ( )
94
86
apiGetOrgFeatures . done ( )
95
87
apiPost . done ( )
96
- expectOutput ( stderr . output , heredoc ( `
97
- Adding [email protected] access to the app myapp...
98
- Adding [email protected] access to the app myapp... done
99
- ` ) )
88
+ expect ( stderr . output ) . to . include ( 'Adding [email protected] access to the app myapp... done' )
100
89
} )
101
90
} )
102
91
@@ -118,10 +107,7 @@ describe('heroku access:add', function () {
118
107
] )
119
108
apiGet . done ( )
120
109
apiPost . done ( )
121
- expectOutput ( stderr . output , heredoc ( `
122
- Adding [email protected] access to the app myapp...
123
- Adding [email protected] access to the app myapp... done
124
- ` ) )
110
+ expect ( stderr . output ) . to . include ( 'Adding [email protected] access to the app myapp... done' )
125
111
} )
126
112
} )
127
113
} )
0 commit comments