Skip to content

Prevent NPE in shadow.test.karma/format-log#1245

Open
armincerf wants to merge 1 commit intothheller:masterfrom
armincerf:fix-npe-in-karma-format-log
Open

Prevent NPE in shadow.test.karma/format-log#1245
armincerf wants to merge 1 commit intothheller:masterfrom
armincerf:fix-npe-in-karma-format-log

Conversation

@armincerf
Copy link

If a test assertion fails with an :actual value of nil, we get this error:

TypeError: Cannot read properties of null (reading 'hasOwnProperty')
    at shadow$test$karma$format_log

rather than seeing details about the test failure, this can be quite misleading and a simple nil check will give clearer failure output

If a test assertion fails with an `:actual` value of nil, we get this error:
```
TypeError: Cannot read properties of null (reading 'hasOwnProperty')
    at shadow$test$karma$format_log
```

rather than seeing details about the test failure, this can be quite misleading and a simple nil check will give clearer failure output
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.

1 participant