Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

fix: pass current image path to reference image error #813

Merged
merged 2 commits into from
Aug 31, 2017

Conversation

DudaGod
Copy link
Member

@DudaGod DudaGod commented Aug 31, 2017

No description provided.


const throwNoRefError = (referencePath) => Promise.reject(new NoRefImageError(referencePath));
const throwNoRefError = (referencePath, capture) => {
Copy link
Member Author

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, но как мне казалось он мне был не нужен. Ошибся )

@eGavr
Copy link
Contributor

eGavr commented Aug 31, 2017

/ok

});

it('should pass reference and current image paths to "NoRefImageError"', () => {
sandbox.stub(NoRefImageError.prototype, '__constructor');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вот это не будет работать когда ты вольешь PR про ошибки. __constructor - это же кишки inherit

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

просто поймай ошибку, и посмотри, что в ней есть currentPath

Copy link
Contributor

@j0tunn j0tunn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В остальном /ok

@DudaGod DudaGod force-pushed the fix-ref-image-error branch from 548efb3 to 3b3a87b Compare August 31, 2017 11:13
@DudaGod DudaGod merged commit 11c24b2 into master Aug 31, 2017
@DudaGod DudaGod deleted the fix-ref-image-error branch August 31, 2017 11:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants