Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

storybook-addon-specifications

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storybook-addon-specifications - npm Package Compare versions

Comparing version 1.0.6 to 1.0.8

1

.storybook/addons.js

@@ -6,1 +6,2 @@ // Uncomment to register defaults

import '../register';
import '@kadira/storybook/addons';

2

.storybook/facade.js
import {storiesOf as storiesOfReal,
action as actionReal,
linkTo as linkToReal} from "@kadira/storybook"
/*import { specs as specsReal, describe as describeReal,
it as itReal } from '@kadira/storybook-addon-specifications'*/
import { specs as specsReal, describe as describeReal,

@@ -7,0 +5,0 @@ it as itReal } from '../src'

@@ -51,3 +51,8 @@ "use strict";

value: function componentDidMount() {
var _this2 = this;
this.props.channel.on(_.EVENT_ID, this._listener);
this.props.channel.on('setCurrentStory', function (data) {
_this2.setState({ results: { wrongResults: [], goodResults: [] } });
});
}

@@ -54,0 +59,0 @@ }, {

@@ -39,3 +39,3 @@ 'use strict';

render: function render() {
return _react2.default.createElement(_Specifications2.default, { channel: channel });
return _react2.default.createElement(_Specifications2.default, { api: api, channel: channel });
}

@@ -42,0 +42,0 @@ });

{
"name": "storybook-addon-specifications",
"version": "1.0.6",
"version": "1.0.8",
"description": "Add tests to your react storybook stories",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -14,2 +14,5 @@ import React, {Component} from "react";

this.props.channel.on(EVENT_ID, this._listener);
this.props.channel.on('setCurrentStory', (data) => {
this.setState({ results: { wrongResults: [], goodResults: [] } });
});
}

@@ -16,0 +19,0 @@

@@ -20,5 +20,5 @@ import React from 'react';

title: 'Specifications',
render: () => <Specifications channel={channel} />
render: () => <Specifications api={api} channel={channel} />
});
});
}

Sorry, the diff of this file is not supported yet

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