mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Add dot at the end of average abbreviation
This commit is contained in:
parent
06a103e182
commit
8d4ce41b63
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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`;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user