rax-image
Advanced tools
Comparing version 1.1.0-beta.1 to 1.1.0
{ | ||
"name": "rax-image", | ||
"version": "1.1.0-beta.1", | ||
"version": "1.1.0", | ||
"description": "Image component for Rax.", | ||
@@ -59,3 +59,3 @@ "license": "BSD-3-Clause", | ||
"rax-text": "^1.0.1", | ||
"typescript": "^3.6.2" | ||
"typescript": "^3.5.3" | ||
}, | ||
@@ -62,0 +62,0 @@ "miniappConfig": { |
@@ -14,11 +14,2 @@ import {createElement, Component} from 'rax'; | ||
it('should render null when image no width and height', () => { | ||
const component = renderer.create( | ||
<Image source={{uri: 'a.png'}} /> | ||
); | ||
let tree = component.toJSON(); | ||
expect(tree).toEqual(null); | ||
}); | ||
it('should render a image', () => { | ||
@@ -48,17 +39,2 @@ const component = renderer.create( | ||
}); | ||
it('should render a image with children', () => { | ||
const component = renderer.create( | ||
<Image source={{uri: 'a.png'}} style={{ | ||
width: '20rem', | ||
height: '20rem' | ||
}}> | ||
<span /> | ||
</Image> | ||
); | ||
let tree = component.toJSON(); | ||
expect(tree.tagName).toEqual('DIV'); | ||
expect(tree.children[0].tagName).toEqual('IMG'); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
20979
522