-
Notifications
You must be signed in to change notification settings - Fork 149
fix: pass current image path to reference image error #813
Conversation
|
||
const throwNoRefError = (referencePath) => Promise.reject(new NoRefImageError(referencePath)); | ||
const throwNoRefError = (referencePath, capture) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Данный обработчик зовется тут - https://github.com/gemini-testing/gemini/blob/master/lib/state-processor/capture-processor/capture-processor.js#L40
В него всегда летел capture
, но как мне казалось он мне был не нужен. Ошибся )
/ok |
}); | ||
|
||
it('should pass reference and current image paths to "NoRefImageError"', () => { | ||
sandbox.stub(NoRefImageError.prototype, '__constructor'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
вот это не будет работать когда ты вольешь PR про ошибки. __constructor
- это же кишки inherit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
просто поймай ошибку, и посмотри, что в ней есть currentPath
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В остальном /ok
548efb3
to
3b3a87b
Compare
No description provided.