Fix tests relying on outdated API

pull/4136/head
Thibaud Colas 2018-01-15 16:33:42 +02:00
rodzic 68f508acd9
commit 33b12fc879
5 zmienionych plików z 9 dodań i 9 usunięć

Wyświetl plik

@ -9,7 +9,7 @@ describe('EmbedBlock', () => {
shallow(
<EmbedBlock
blockProps={{
entityConfig: {},
entityType: {},
entity: {
getData: () => ({
url: 'http://www.example.com/',

Wyświetl plik

@ -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',

Wyświetl plik

@ -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: {

Wyświetl plik

@ -8,7 +8,7 @@ exports[`EmbedBlock renders 1`] = `
"entity": Object {
"getData": [Function],
},
"entityConfig": Object {},
"entityType": Object {},
}
}
src="http://www.example.com/example.png"

Wyświetl plik

@ -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],
}
}