0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Fix link entity conversion tests

This commit is contained in:
Thibaud Colas 2018-01-15 18:19:03 +02:00
parent 9a6ad3b372
commit 26e82d3c01

View File

@ -227,7 +227,7 @@ class TestHtmlToContentState(TestCase):
))
self.assertContentStateEqual(result, {
'entityMap': {
'0': {'mutability': 'MUTABLE', 'type': 'LINK', 'data': {'url': 'http://wagtail.io', 'linkType': 'external'}}
'0': {'mutability': 'MUTABLE', 'type': 'LINK', 'data': {'url': 'http://wagtail.io'}}
},
'blocks': [
{
@ -248,7 +248,7 @@ class TestHtmlToContentState(TestCase):
'entityMap': {
'0': {
'mutability': 'MUTABLE', 'type': 'LINK',
'data': {'id': 3, 'linkType': 'page', 'title': 'Events', 'url': '/events/', 'parentId': 2}
'data': {'id': 3, 'url': '/events/', 'parentId': 2}
}
},
'blocks': [