This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import expect from 'unexpected'; | |
import jsdomify from 'jsdomify'; | |
describe('MyComponent', () => { | |
let React, TestUtils, getInstance, MyComponent; | |
before(() => { | |
jsdomify.create(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We can be generic and grep for an entire 'describe' clause | |
$ mocha -g PlainField | |
# Or we can be very specific and only run the test that we want | |
$ mocha -g 'should render as a PlainFieldValueComponent with `props.showLabel === false`' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Based on example code from Carl-Fredrik Herö from Elvenite AB <http://elvenite.se/> | |
Install dependencies: | |
* npm install faye | |
* npm install git://github.com/haugstrup/podiojs.git | |
Add needed info: | |
* Populate client_id and client_secret for your API key |