Permalink
Browse files

fix tests

  • Loading branch information...
1 parent bc6c929 commit 80debf6c5da1624805429c056a292b7f12050566 @sindresorhus committed Nov 4, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 test.js
View
@@ -17,7 +17,7 @@ test('version is pre-release', t => {
t.throws(m('10.0.0-beta'), message);
});
-test('foo', t => {
- t.throws(m('1.0.0'), /New version `1\.0\.0` should be higher than current version `\d\.\d\.\d`/);
- t.throws(m('1.0.0-beta'), /New version `1\.0\.0-beta` should be higher than current version `\d\.\d\.\d`/);
+test('errors on too low version', t => {
+ t.throws(m('1.0.0'), /New version `1\.0\.0` should be higher than current version `\d+\.\d+\.\d+`/);
+ t.throws(m('1.0.0-beta'), /New version `1\.0\.0-beta` should be higher than current version `\d+\.\d+\.\d+`/);
});

0 comments on commit 80debf6

Please sign in to comment.