Add dot at the end of average abbreviation

This commit is contained in:
Philipp Muens 2016-11-28 16:18:42 +01:00
parent 06a103e182
commit 8d4ce41b63
3 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ functions:
invocations: 0
throttles: 0
errors: 0
avg duration: 0
avg. duration: 0
```
#### Verbose
@ -78,7 +78,7 @@ functions:
invocations: 0
throttles: 0
errors: 0
avg duration: 0
avg. duration: 0
Stack Outputs
CloudFrontUrl: d2d10e2tyk1pei.cloudfront.net

View File

@ -93,7 +93,7 @@ module.exports = {
}
functionsMessage += '\n';
} else { // duration
functionsMessage += ` ${chalk.yellow('avg duration:')}`;
functionsMessage += ` ${chalk.yellow('avg. duration:')}`;
if (metric.Datapoints.length) {
const avgDuration = metric.Datapoints[0].Average;
const roundedAvgDuration = Math.round(avgDuration * 100) / 100;

View File

@ -247,7 +247,7 @@ describe('#display()', () => {
expectedMessage += '\n';
expectedMessage += ` ${chalk.yellow('errors:')} 1`;
expectedMessage += '\n';
expectedMessage += ` ${chalk.yellow('avg duration:')} 1000ms`;
expectedMessage += ` ${chalk.yellow('avg. duration:')} 1000ms`;
expectedMessage += '\n function2:\n';
expectedMessage += ` ${chalk.yellow('arn:')} arn:aws:iam::12345678:function:function2\n`;
expectedMessage += ` ${chalk.yellow('metrics (last 24h):')}\n`;
@ -257,7 +257,7 @@ describe('#display()', () => {
expectedMessage += '\n';
expectedMessage += ` ${chalk.yellow('errors:')} 0`;
expectedMessage += '\n';
expectedMessage += ` ${chalk.yellow('avg duration:')} 0`;
expectedMessage += ` ${chalk.yellow('avg. duration:')} 0`;
expectedMessage += '\n function3:\n';
expectedMessage += ` ${chalk.yellow('arn:')} arn:aws:iam::12345678:function:function3\n`;
expectedMessage += ` ${chalk.yellow('metrics (last 24h):')}\n`;