mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Reverting test file back to old version to avoid linting issues
This commit is contained in:
parent
7b6a8ff262
commit
1f9e32d4c8
@ -153,7 +153,7 @@ describe('AwsDeployFunction', () => {
|
||||
const arn = 'arn:aws:iam::123456789012:role/role';
|
||||
|
||||
return awsDeployFunction.normalizeArnRole(arn).then((result) => {
|
||||
expect(getAccountInfoStub).to.not.have.been.called;
|
||||
expect(getAccountInfoStub.calledOnce).to.be.equal(false);
|
||||
expect(result).to.be.equal(arn);
|
||||
});
|
||||
});
|
||||
@ -162,7 +162,7 @@ describe('AwsDeployFunction', () => {
|
||||
const roleName = 'MyCustomRole';
|
||||
|
||||
return awsDeployFunction.normalizeArnRole(roleName).then((result) => {
|
||||
expect(getAccountInfoStub).to.have.been.calledOnce;
|
||||
expect(getAccountInfoStub.calledOnce).to.be.equal(true);
|
||||
expect(result).to.be.equal('arn:aws:iam::123456789012:role/role_123');
|
||||
});
|
||||
});
|
||||
@ -177,7 +177,7 @@ describe('AwsDeployFunction', () => {
|
||||
|
||||
return awsDeployFunction.normalizeArnRole(roleObj).then((result) => {
|
||||
expect(getRoleStub.calledOnce).to.be.equal(true);
|
||||
expect(getAccountInfoStub).to.not.have.been.called;
|
||||
expect(getAccountInfoStub.calledOnce).to.be.equal(false);
|
||||
expect(result).to.be.equal('arn:aws:iam::123456789012:role/role_2');
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user