-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove tests related to unneeded pricing language
- Loading branch information
Showing
2 changed files
with
0 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,50 +20,6 @@ describe('heroku members:add', () => { | |
beforeEach(() => { | ||
stubGet.teamFeatures([]) | ||
}) | ||
|
||
context('and group is a team', () => { | ||
beforeEach(() => { | ||
stubGet.teamInfo('team') | ||
}) | ||
|
||
it('does not warn the user when under the free org limit', () => { | ||
stubGet.variableSizeTeamMembers(1) | ||
stubGet.variableSizeTeamInvites(0) | ||
apiUpdateMemberRole = stubPut.updateMemberRole('[email protected]', 'admin') | ||
|
||
return cmd.run({args: {email: '[email protected]'}, flags: {role: 'admin', team: 'myteam'}}) | ||
.then(() => expect('').to.eq(cli.stdout)) | ||
.then(() => expect(`Adding [email protected] to myteam as admin... done | ||
`).to.eq(cli.stderr)) | ||
.then(() => apiUpdateMemberRole.done()) | ||
}) | ||
|
||
it('does not warn the user when over the free org limit', () => { | ||
stubGet.variableSizeTeamMembers(7) | ||
stubGet.variableSizeTeamInvites(0) | ||
apiUpdateMemberRole = stubPut.updateMemberRole('[email protected]', 'admin') | ||
|
||
return cmd.run({args: {email: '[email protected]'}, flags: {role: 'admin', team: 'myteam'}}) | ||
.then(() => expect('').to.eq(cli.stdout)) | ||
.then(() => expect(`Adding [email protected] to myteam as admin... done | ||
`).to.eq(cli.stderr)) | ||
.then(() => apiUpdateMemberRole.done()) | ||
}) | ||
|
||
it('does warn the user when at the free org limit', () => { | ||
stubGet.variableSizeTeamMembers(6) | ||
stubGet.variableSizeTeamInvites(0) | ||
apiUpdateMemberRole = stubPut.updateMemberRole('[email protected]', 'admin') | ||
|
||
return cmd.run({args: {email: '[email protected]'}, flags: {role: 'admin', team: 'myteam'}}) | ||
.then(() => expect('').to.eq(cli.stdout)) | ||
.then(() => expect(unwrap(cli.stderr)).to.equal(`Adding [email protected] to myteam as admin... done \ | ||
You'll be billed monthly for teams over 5 members. | ||
`)) | ||
.then(() => apiUpdateMemberRole.done()) | ||
}) | ||
}) | ||
|
||
context('and group is an enterprise org', () => { | ||
beforeEach(() => { | ||
stubGet.teamInfo('enterprise') | ||
|
@@ -88,22 +44,6 @@ You'll be billed monthly for teams over 5 members. | |
stubGet.teamInfo('team') | ||
}) | ||
|
||
it('does warn the user when free org limit is caused by invites', () => { | ||
let apiSendInvite = stubPut.sendInvite('[email protected]', 'admin') | ||
|
||
let apiGetOrgMembers = stubGet.variableSizeTeamMembers(1) | ||
let apiGetTeamInvites = stubGet.variableSizeTeamInvites(5) | ||
|
||
return cmd.run({args: {email: '[email protected]'}, flags: {role: 'admin', team: 'myteam'}}) | ||
.then(() => apiSendInvite.done()) | ||
.then(() => apiGetOrgMembers.done()) | ||
.then(() => apiGetTeamInvites.done()) | ||
.then(() => expect('').to.eq(cli.stdout)) | ||
.then(() => expect(unwrap(cli.stderr)).to.equal(`Inviting [email protected] to myteam as admin... email sent \ | ||
You'll be billed monthly for teams over 5 members. | ||
`)) | ||
}) | ||
|
||
it('sends an invite when adding a new user to the team', () => { | ||
let apiSendInvite = stubPut.sendInvite('[email protected]', 'admin') | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,19 +47,6 @@ describe('heroku members:set', () => { | |
`).to.eq(cli.stderr)) | ||
.then(() => apiUpdateMemberRole.done()) | ||
}) | ||
|
||
it('does warn the user when at the free org limit', () => { | ||
stubGet.variableSizeTeamMembers(6) | ||
stubGet.variableSizeTeamInvites(0) | ||
apiUpdateMemberRole = stubPatch.updateMemberRole('[email protected]', 'admin') | ||
|
||
return cmd.run({args: {email: '[email protected]'}, flags: {role: 'admin', team: 'myteam'}}) | ||
.then(() => expect('').to.eq(cli.stdout)) | ||
.then(() => expect(unwrap(cli.stderr)).to.equal(`Adding [email protected] to myteam as admin... done \ | ||
You'll be billed monthly for teams over 5 members. | ||
`)) | ||
.then(() => apiUpdateMemberRole.done()) | ||
}) | ||
}) | ||
|
||
context('and group is an enterprise org', () => { | ||
|