storybook-addon-specifications
Advanced tools
Comparing version 1.0.6 to 1.0.8
@@ -6,1 +6,2 @@ // Uncomment to register defaults | ||
import '../register'; | ||
import '@kadira/storybook/addons'; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
218220
559