kopia lustrzana https://github.com/wagtail/wagtail
Fix tests relying on outdated API
rodzic
68f508acd9
commit
33b12fc879
|
@ -9,7 +9,7 @@ describe('EmbedBlock', () => {
|
|||
shallow(
|
||||
<EmbedBlock
|
||||
blockProps={{
|
||||
entityConfig: {},
|
||||
entityType: {},
|
||||
entity: {
|
||||
getData: () => ({
|
||||
url: 'http://www.example.com/',
|
||||
|
|
|
@ -13,7 +13,7 @@ describe('ImageBlock', () => {
|
|||
block={{}}
|
||||
blockProps={{
|
||||
editorState: {},
|
||||
entityConfig: {},
|
||||
entityType: {},
|
||||
entity: {
|
||||
getData: () => ({
|
||||
src: 'example.png',
|
||||
|
@ -33,7 +33,7 @@ describe('ImageBlock', () => {
|
|||
block={{}}
|
||||
blockProps={{
|
||||
editorState: {},
|
||||
entityConfig: {},
|
||||
entityType: {},
|
||||
entity: {
|
||||
getData: () => ({
|
||||
src: 'example.png',
|
||||
|
@ -57,7 +57,7 @@ describe('ImageBlock', () => {
|
|||
block={{}}
|
||||
blockProps={{
|
||||
editorState: {},
|
||||
entityConfig: {},
|
||||
entityType: {},
|
||||
entity: {
|
||||
getData: () => ({
|
||||
src: 'example.png',
|
||||
|
|
|
@ -11,7 +11,7 @@ describe('MediaBlock', () => {
|
|||
src="example.png"
|
||||
alt=""
|
||||
blockProps={{
|
||||
entityConfig: {
|
||||
entityType: {
|
||||
icon: '#icon-test',
|
||||
},
|
||||
entity: {
|
||||
|
@ -36,7 +36,7 @@ describe('MediaBlock', () => {
|
|||
src="example.png"
|
||||
alt=""
|
||||
blockProps={{
|
||||
entityConfig: {
|
||||
entityType: {
|
||||
icon: '#icon-test',
|
||||
},
|
||||
entity: {
|
||||
|
|
|
@ -8,7 +8,7 @@ exports[`EmbedBlock renders 1`] = `
|
|||
"entity": Object {
|
||||
"getData": [Function],
|
||||
},
|
||||
"entityConfig": Object {},
|
||||
"entityType": Object {},
|
||||
}
|
||||
}
|
||||
src="http://www.example.com/example.png"
|
||||
|
|
|
@ -10,7 +10,7 @@ exports[`ImageBlock alt 1`] = `
|
|||
"entity": Object {
|
||||
"getData": [Function],
|
||||
},
|
||||
"entityConfig": Object {},
|
||||
"entityType": Object {},
|
||||
"onChange": [Function],
|
||||
}
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ exports[`ImageBlock renders 1`] = `
|
|||
"entity": Object {
|
||||
"getData": [Function],
|
||||
},
|
||||
"entityConfig": Object {},
|
||||
"entityType": Object {},
|
||||
"onChange": [Function],
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue