diff --git a/x-pack/legacy/plugins/reporting/server/lib/esqueue/__tests__/helpers/cancellation_token.js b/x-pack/legacy/plugins/reporting/server/lib/esqueue/__tests__/helpers/cancellation_token.js index 8f1d82318bfb8..4b77b936db8a8 100644 --- a/x-pack/legacy/plugins/reporting/server/lib/esqueue/__tests__/helpers/cancellation_token.js +++ b/x-pack/legacy/plugins/reporting/server/lib/esqueue/__tests__/helpers/cancellation_token.js @@ -64,12 +64,12 @@ describe('CancellationToken', function() { describe('isCancelled', function() { it('should default to false', function() { - expect(cancellationToken.isCancelled).to.be(false); + expect(cancellationToken.isCancelled()).to.be(false); }); it('should switch to true after call to cancel', function() { cancellationToken.cancel(); - expect(cancellationToken.isCancelled).to.be(true); + expect(cancellationToken.isCancelled()).to.be(true); }); }); });