From a91c8276333c4989553dc38f2ea652cd7b22372f Mon Sep 17 00:00:00 2001 From: Ralph Dugue Date: Fri, 7 Jul 2017 08:37:53 -0400 Subject: [PATCH] Fixing error with matching in test --- lib/plugins/aws/provider/awsProvider.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);