New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rax-image

Package Overview
Dependencies
Maintainers
8
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rax-image - npm Package Compare versions

Comparing version 1.1.0-beta.1 to 1.1.0

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc