Fixing error with matching in test

This commit is contained in:
Ralph Dugue 2017-07-07 08:37:53 -04:00
parent c15ec99d9c
commit a91c827633

View File

@ -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);