Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ENT8R committed Jun 1, 2018
1 parent c3e5e3a commit e3edd74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit e3edd74

Please sign in to comment.