Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'replace' of undefined #1

Closed
gowthamgts opened this issue May 29, 2018 · 0 comments
Closed

Cannot read property 'replace' of undefined #1

gowthamgts opened this issue May 29, 2018 · 0 comments

Comments

@gowthamgts
Copy link
Contributor

If there is a manifest without the line # Source the beforeAll hook throws the following error:

Uncaught TypeError: Cannot read property 'replace' of undefined

The error is thrown in this line:

const source = manifest.split('\n').find(l => { return l.startsWith('# Source'); }).replace('# Source: ', '');

@Stono Stono closed this as completed in d5ab75a Jun 2, 2018
Stono added a commit that referenced this issue Jun 2, 2018
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

No branches or pull requests

1 participant