Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
maguimarijuan committed Jun 11, 2020
1 parent 8f01843 commit b680a7a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions lib/serverless-configuration.js
Expand Up @@ -10,10 +10,9 @@ module.exports = () => {
['envVars', {
LOG_ROLE_ARN: logRoleArn
}],
[
'iamStatement', {
action: 'Sts:AssumeRole',
resource: logRoleArn
}
]];
['iamStatement', {
action: 'Sts:AssumeRole',
resource: logRoleArn
}]
];
};
11 changes: 5 additions & 6 deletions tests/log-test.js
Expand Up @@ -375,12 +375,11 @@ describe('Log', () => {
assert.deepStrictEqual(Log.serverlessConfiguration, [
['envVars', {
LOG_ROLE_ARN: 'logArnSource'
}], [
'iamStatement', {
action: 'Sts:AssumeRole',
resource: 'logArnSource'
}
]]);
}], ['iamStatement', {
action: 'Sts:AssumeRole',
resource: 'logArnSource'
}]
]);

sandbox.assert.calledOnceWithExactly(Settings.get, 'logRoleArn');
});
Expand Down

0 comments on commit b680a7a

Please sign in to comment.