fix tests

This commit is contained in:
Philipp Kühn
2020-10-25 22:27:31 +01:00
parent ac9fdf6481
commit dd95a75a05

View File

@@ -39,7 +39,8 @@ const Link = createMark({
target: attributes.target,
}),
parseHTML: node => ({
target: node.getAttribute('target'),
// TODO: always return default value on `null` or `undefined`
target: node.getAttribute('target') || this.options.target,
}),
},
}