fix deprecation test

This commit is contained in:
Bex Warner 2017-08-06 21:08:21 -07:00
parent 93dd936430
commit 3ec28ada3e
1 changed files with 2 additions and 1 deletions

View File

@ -82,9 +82,10 @@ describe('Probot', () => {
describe('robot', () => {
it('will be removed in 0.10', () => {
// This test will fail in version 0.10
const semver = require('semver');
const pkg = require('../package');
expect(semver.satisfies(pkg.version, '>=0.9')).toBe(false, 'remove in 0.10.0');
expect(semver.satisfies(pkg.version, '<=0.9')).toBe(true);
});
it('returns the first defined (for now)', () => {