Socket
Socket
Sign inDemoInstall

jasmine-react-helpers

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.2.2

2

package.json
{
"name": "jasmine-react-helpers",
"version": "0.2.1",
"version": "0.2.2",
"description": "a small suite of helper functions to make unit testing React.js components painless.",

@@ -5,0 +5,0 @@ "main": "src/jasmine-react.js",

@@ -123,2 +123,5 @@ var React = require('react');

// backwards compatability for React < 0.12
jasmineReact.renderComponent = jasmineReact.render;
// TODO: this has no automated test coverage. Add some integration tests for coverage.

@@ -125,0 +128,0 @@ afterEach(function(){

@@ -56,2 +56,8 @@ describe("jasmineReact", function(){

});
it("should alias jasmineReact.renderComponent to jasmineReact.render", function(){
var returnValue = jasmineReact.renderComponent(<FooKlass baz="bat" />, document.getElementById("jasmine_content"));
expect(returnValue.props.baz).toBe("bat");
});
});

@@ -58,0 +64,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc