import RNTest from './react-native-testkit/'
import React from 'react'
import RNFetchBlob from 'react-native-fetch-blob'

import {
  StyleSheet,
  Text,
  View,
  ScrollView,
  Dimensions,
  Platform,
  Dimension,
  Image,
} from 'react-native';

const { Assert, Comparer, Info, prop } = RNTest

// test environment variables

prop('FILENAME', `${Platform.OS}-0.8.0-${Date.now()}.png`)
prop('TEST_SERVER_URL', 'http://192.168.0.11:8123')
prop('TEST_SERVER_URL_SSL', 'https://192.168.0.11:8124')
prop('DROPBOX_TOKEN', 'fsXcpmKPrHgAAAAAAAAAoXZhcXYWdgLpQMan6Tb_bzJ237DXhgQSev12hA-gUXt4')
prop('styles', {
  image : {
    width: Dimensions.get('window').width*0.9,
    height : Dimensions.get('window').width*0.9,
    margin : 16,
    flex : 1
  }
})

const { TEST_SERVER_URL, FILENAME, DROPBOX_TOKEN, styles, image } = prop()

const describe = RNTest.config({
  run : true,
  expand : true,
  timeout : 5000,
})

// init

describe('GET image from server', (report, done) => {

  RNFetchBlob
    .fetch('GET', `${TEST_SERVER_URL}/public/github.png`, {
      Authorization : 'Bearer abde123eqweje'
    })
    .then((resp) => {
      RNTest.prop('image', resp.base64())
      report(
        <Info key="Response image">
          <Image
            style={styles.image}
            source={{uri : `data:image/png;base64, ${prop('image')}`}}/>
        </Info>)
        done()
    })
})


require('./test-0.1.x-0.4.x')
require('./test-0.5.1')
require('./test-0.5.2')
require('./test-0.6.0')
require('./test-0.6.2')
require('./test-0.7.0')
require('./test-0.8.0')
require('./test-0.9.0')
require('./test-0.9.2')
require('./test-fetch')
require('./test-fs')
require('./test-xmlhttp')
require('./test-blob')
require('./test-firebase')
require('./test-android')
// require('./test-stress')
// require('./benchmark')

@@ -1374,16 +1374,19 @@
 %7D)%0A%7D)%0A%0A%0A
+// 
 require(
@@ -1407,16 +1407,19 @@
 0.4.x')%0A
+// 
 require(
@@ -1434,16 +1434,19 @@
 0.5.1')%0A
+// 
 require(
@@ -1457,24 +1457,27 @@
 est-0.5.2')%0A
+// 
 require('./t
@@ -1484,24 +1484,27 @@
 est-0.6.0')%0A
+// 
 require('./t
@@ -1511,24 +1511,27 @@
 est-0.6.2')%0A
+// 
 require('./t
@@ -1538,24 +1538,27 @@
 est-0.7.0')%0A
+// 
 require('./t
@@ -1565,24 +1565,27 @@
 est-0.8.0')%0A
+// 
 require('./t
@@ -1596,16 +1596,19 @@
 0.9.0')%0A
+// 
 require(
@@ -1623,16 +1623,43 @@
 0.9.2')%0A
+require('./test-0.9.4')%0A// 
 require(
@@ -1674,16 +1674,19 @@
 fetch')%0A
+// 
 require(
@@ -1698,16 +1698,19 @@
 st-fs')%0A
+// 
 require(
@@ -1727,16 +1727,19 @@
 lhttp')%0A
+// 
 require(
@@ -1753,16 +1753,19 @@
 -blob')%0A
+// 
 require(
@@ -1783,16 +1783,19 @@
 ebase')%0A
+// 
 require(

Add 0.9.4 tests