Skip to content

Conversation

yehor-manzhula
Copy link
Contributor

@yehor-manzhula yehor-manzhula commented Oct 19, 2022

Hardcode error names instead of using constructor.name and rely on minifier options


it('should set correct child name', () => {
const Child = BaseError.extends('ChildError');
expect(new Child().name).to.be.instanceOf('ChildError');
Copy link
Contributor

Choose a reason for hiding this comment

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

just to.be.equal('ChildError') should be enough

@yehor-manzhula yehor-manzhula force-pushed the fix/hardcode-error-codes branch from b4c6d29 to dd53062 Compare October 25, 2022 13:28
@yehor-manzhula yehor-manzhula merged commit bc79589 into master Oct 25, 2022
@yehor-manzhula yehor-manzhula deleted the fix/hardcode-error-codes branch October 25, 2022 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants