forked from mirrors/probot
fix deprecation test
This commit is contained in:
parent
93dd936430
commit
3ec28ada3e
|
@ -82,9 +82,10 @@ describe('Probot', () => {
|
||||||
|
|
||||||
describe('robot', () => {
|
describe('robot', () => {
|
||||||
it('will be removed in 0.10', () => {
|
it('will be removed in 0.10', () => {
|
||||||
|
// This test will fail in version 0.10
|
||||||
const semver = require('semver');
|
const semver = require('semver');
|
||||||
const pkg = require('../package');
|
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)', () => {
|
it('returns the first defined (for now)', () => {
|
||||||
|
|
Loading…
Reference in New Issue