Skip to content

Commit

Permalink
Output valid TAP details without any stray colons that cause parsers …
Browse files Browse the repository at this point in the history
…to fail in a details block
  • Loading branch information
Munter committed Jul 23, 2019
1 parent bfd03fd commit 328cc29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/relationDebugDescription.js
Expand Up @@ -18,8 +18,8 @@ module.exports = function relationDebugDescription(relation) {

var node = relation.node;

if (relation.from.isInline) {
details += 'inlined ' + relation.from.type + ': ';
if (relation.from.isInline && asset.type !== relation.from.type) {
details += `(inlined ${relation.from.type}) `;
}

// DOM node
Expand Down
2 changes: 1 addition & 1 deletion test/relationDebugDescription-test.js
Expand Up @@ -106,7 +106,7 @@ describe('relationDebugDescription', function() {
expect(
result,
'to end with',
'index.html:1:58 inlined Css: url(https://mntr.dk/invalid.png)'
'index.html:1:58 (inlined Css) url(https://mntr.dk/invalid.png)'
);
});
});
Expand Down

0 comments on commit 328cc29

Please sign in to comment.