설명 없음

test-readable.js 930B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import RNTest from './react-native-testkit/'
  2. import React from 'react'
  3. import RNFetchBlob from 'react-native-fetch-blob'
  4. import Timer from 'react-timer-mixin'
  5. import {
  6. StyleSheet,
  7. Text,
  8. View,
  9. ScrollView,
  10. CameraRoll,
  11. Platform,
  12. Dimensions,
  13. Image,
  14. } from 'react-native';
  15. import EventEmitter from 'EventEmitter'
  16. const fs = RNFetchBlob.fs
  17. const Readable = RNFetchBlob.polyfill.Readable
  18. const { Assert, Comparer, Info, prop } = RNTest
  19. const describe = RNTest.config({
  20. group : 'Blob',
  21. run : true,
  22. expand : false,
  23. timeout : 20000,
  24. })
  25. const { TEST_SERVER_URL, TEST_SERVER_URL_SSL, DROPBOX_TOKEN, styles } = prop()
  26. const dirs = RNFetchBlob.fs.dirs
  27. let prefix = ((Platform.OS === 'android') ? 'file://' : '')
  28. let file = RNTest.prop('image')
  29. describe('first test', (report, done) => {
  30. let e = new EventEmitter()
  31. console.log(e)
  32. e.addListener('aaa', (data) => { console.log(data) })
  33. e.emit('aaa', 123)
  34. })