mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
Fixing error with matching in test
This commit is contained in:
parent
c15ec99d9c
commit
a91c827633
@ -3,6 +3,7 @@
|
||||
const expect = require('chai').expect;
|
||||
const proxyquire = require('proxyquire');
|
||||
const sinon = require('sinon');
|
||||
const chalk = require('chalk');
|
||||
|
||||
const AwsProvider = require('./awsProvider');
|
||||
const Serverless = require('../../../Serverless');
|
||||
@ -243,9 +244,9 @@ describe('AwsProvider', () => {
|
||||
' Please re-authenticate if you\'re using MFA.\n',
|
||||
' Or check your ~./aws/credentials file and verify your keys are correct.\n',
|
||||
' More information on setting up credentials',
|
||||
' can be found here: https://goo.gl/esQf6D.',
|
||||
` can be found here: ${chalk.green('https://goo.gl/esQf6D')}.`,
|
||||
].join('');
|
||||
expect(err.message).to.match(errorMessage);
|
||||
expect(err.message).to.equal(errorMessage);
|
||||
done();
|
||||
})
|
||||
.catch(done);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user