1
+ const TEST_IMAGE_SOURCE_URL = 'https://raw.githubusercontent.com/contentful/contentful-management.js/next/test/integration/fixtures/shiba-stuck-bush.jpg'
2
+
1
3
export function assetReadOnlyTests ( t , space ) {
2
4
t . test ( 'Gets assets with only images' , ( t ) => {
3
5
t . plan ( 1 )
@@ -28,7 +30,6 @@ export function assetReadOnlyTests (t, space) {
28
30
}
29
31
30
32
export function assetWriteTests ( t , space ) {
31
- // TODO upload file to github repo to use as fixture
32
33
t . test ( 'Create, process, update, publish, unpublish, archive, unarchive and delete asset' , ( t ) => {
33
34
t . plan ( 7 )
34
35
@@ -37,7 +38,7 @@ export function assetWriteTests (t, space) {
37
38
file : { 'en-US' : {
38
39
contentType : 'image/jpeg' ,
39
40
fileName : 'shiba-stuck.jpg' ,
40
- upload : 'http://shiba.fr/wp-content/uploads/shiba-stuck-bush.jpg'
41
+ upload : TEST_IMAGE_SOURCE_URL
41
42
} }
42
43
} } )
43
44
. then ( ( asset ) => {
@@ -80,12 +81,12 @@ export function assetWriteTests (t, space) {
80
81
'en-US' : {
81
82
contentType : 'image/jpeg' ,
82
83
fileName : 'shiba-stuck.jpg' ,
83
- upload : 'http://shiba.fr/wp-content/uploads/shiba-stuck-bush.jpg'
84
+ upload : TEST_IMAGE_SOURCE_URL
84
85
} ,
85
86
'de-DE' : {
86
87
contentType : 'image/jpeg' ,
87
88
fileName : 'shiba-stuck.jpg' ,
88
- upload : 'http://shiba.fr/wp-content/uploads/shiba-stuck-bush.jpg'
89
+ upload : TEST_IMAGE_SOURCE_URL
89
90
}
90
91
}
91
92
} } )
0 commit comments