diff --git a/lib/plugins/aws/provider/awsProvider.test.js b/lib/plugins/aws/provider/awsProvider.test.js index 9e5aedcd0..c13e3d998 100644 --- a/lib/plugins/aws/provider/awsProvider.test.js +++ b/lib/plugins/aws/provider/awsProvider.test.js @@ -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);