diff --git a/lib/features/context-pad/ContextPad.js b/lib/features/context-pad/ContextPad.js index f43ec3eca..76e9cb1c8 100644 --- a/lib/features/context-pad/ContextPad.js +++ b/lib/features/context-pad/ContextPad.js @@ -425,9 +425,7 @@ ContextPad.prototype._createHtml = function(target) { * @return { { html: HTMLElement } } */ ContextPad.prototype.getPad = function(target) { - console.warn(new Error( - 'getPad is deprecated and will be removed in future library versions' - )); + console.warn(new Error('ContextPad#getPad is deprecated and will be removed in future library versions, cf. https://github.com/bpmn-io/diagram-js/pull/888')); let html; diff --git a/test/spec/features/context-pad/ContextPadSpec.js b/test/spec/features/context-pad/ContextPadSpec.js index 4bb61479c..867ea7640 100755 --- a/test/spec/features/context-pad/ContextPadSpec.js +++ b/test/spec/features/context-pad/ContextPadSpec.js @@ -1408,7 +1408,7 @@ describe('features/context-pad', function() { expect(warnSpy).to.have.been.calledOnce; expect(warnSpy.getCall(0).args[ 0 ]).to.be.instanceOf(Error); - expect(warnSpy.getCall(0).args[ 0 ].message).to.equal('getPad is deprecated and will be removed in future library versions'); + expect(warnSpy.getCall(0).args[ 0 ].message).to.match(/is deprecated/); })); });