mirror of
https://github.com/status-im/react-native-fast-image.git
synced 2025-02-23 11:48:16 +00:00
Fix tests. Update dependencies and format command.
This commit is contained in:
parent
753420bb17
commit
04865c210a
@ -53,7 +53,7 @@ exports[`Renders a normal Image when not passed a uri. 1`] = `
|
||||
resizeMode="cover"
|
||||
source={
|
||||
Object {
|
||||
"testUri": "../../../server/pictures/jellyfish.gif",
|
||||
"testUri": "../../../react-native-fast-image-example-server/pictures/jellyfish.gif",
|
||||
}
|
||||
}
|
||||
style={
|
@ -1,7 +1,7 @@
|
||||
import { StyleSheet } from 'react-native'
|
||||
import React from 'react'
|
||||
import renderer from 'react-test-renderer'
|
||||
import FastImage from './FastImage.js'
|
||||
import FastImage from './index.js'
|
||||
|
||||
const style = StyleSheet.create({ image: { width: 44, height: 44 } })
|
||||
|
||||
@ -28,7 +28,7 @@ test('Renders a normal Image when not passed a uri.', () => {
|
||||
const tree = renderer
|
||||
.create(
|
||||
<FastImage
|
||||
source={require('./server/pictures/jellyfish.gif')}
|
||||
source={require('./react-native-fast-image-example-server/pictures/jellyfish.gif')}
|
||||
style={style.image}
|
||||
/>,
|
||||
)
|
||||
|
@ -31,11 +31,11 @@
|
||||
"url": "git+https://github.com/DylanVann/react-native-fast-image.git"
|
||||
},
|
||||
"scripts": {
|
||||
"format": "prettier --write --no-semi --single-quote --trailing-comma all ./FastImage.js ./example/*.js ./example/fastImage/*.js ./server/*.js",
|
||||
"format": "prettier --write --no-semi --single-quote --trailing-comma all ./index.js ./example/*.js ./example/fastImage/*.js ./server/*.js",
|
||||
"prepare": "git submodule update --init --recursive",
|
||||
"test": "yarn run test:pretty && yarn run test:jest",
|
||||
"test:jest": "jest *.js",
|
||||
"test:pretty": "prettier-check --write --no-semi --single-quote --trailing-comma all ./FastImage.js ./example/*.js ./example/fastImage/*.js ./server/*.js"
|
||||
"test:pretty": "prettier-check --write --no-semi --single-quote --trailing-comma all ./index.js ./example/*.js ./example/fastImage/*.js ./server/*.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"prop-types": "^15.5.10"
|
||||
@ -46,8 +46,8 @@
|
||||
"jest": "^21.2.1",
|
||||
"prettier": "^1.5.2",
|
||||
"prettier-check": "^2.0.0",
|
||||
"react": "16.0.0",
|
||||
"react-native": "^0.50.4",
|
||||
"react": "^16.3.0-alpha.1",
|
||||
"react-native": "^0.54.1",
|
||||
"react-test-renderer": "16.0.0"
|
||||
},
|
||||
"jest": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user