Skip to content

Commit

Permalink
Inspect typeless assets as Asset instead of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Oct 17, 2019
1 parent fd2e1b7 commit 3753595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/unexpected-assetgraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
},
inspect(asset, depth, output) {
return output
.text(`${asset.type}(`)
.text(`${asset.type || 'Asset'}(`)
.text(asset.urlOrDescription)
.text(')');
},
Expand Down

0 comments on commit 3753595

Please sign in to comment.