From e3edd74188ee4547769b7cee849c4ae48a05cfb7 Mon Sep 17 00:00:00 2001 From: ENT8R Date: Fri, 1 Jun 2018 16:05:21 +0200 Subject: [PATCH] Fix tests --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 55a3447..0c275ab 100644 --- a/test/test.js +++ b/test/test.js @@ -14,9 +14,9 @@ const packageAge = require('../index.js'); describe('Versions', () => { describe('#compare()', () => { - it('should return the version in red and bold', () => { + it('should return the version in red and bold and the new version in green and bold', () => { const result = packageAge.Versions.compare('1.2.0', '1.3.0'); - assert.equal(result, chalk.bgRed.bold('1.2.0')); + assert.equal(result, `${chalk.bgRed.bold('1.2.0')} => ${chalk.bgGreen.bold('1.3.0')}`); }); it('should return the version in green and bold', () => { const result = packageAge.Versions.compare('1.3.0', '1.3.0');