{"name":"redux-devtools-test-generator","version":"0.2.0-alpha-7","description":"Generate tests for redux devtools.","main":"lib/index.js","files":["lib"],"scripts":{"clean":"rimraf lib","build":"babel src --out-dir lib","lint":"eslint src test","test":"BABEL_ENV=commonjs mocha --compilers js:babel-register --require enzyme/withDom.js --recursive","prepublish":"npm run lint && npm run clean && npm run build"},"repository":{"type":"git","url":"https://github.com/zalmoxisus/redux-devtools-test-generator.git"},"author":{"name":"Mihail Diordiev","email":"zalmoxisus@gmail.com","url":"https://github.com/zalmoxisus"},"license":"MIT","bugs":{"url":"https://github.com/zalmoxisus/redux-devtools-test-generator/issues"},"homepage":"https://github.com/zalmoxisus/redux-devtools-test-generator","devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.10.4","babel-eslint":"^6.0.5","babel-loader":"^6.2.4","babel-preset-es2015":"^6.9.0","babel-preset-es2015-loose":"^7.0.0","babel-preset-react":"^6.5.0","babel-preset-stage-0":"^6.5.0","babel-register":"^6.11.6","enzyme":"^2.3.0","eslint":"^2.13.1","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.9.2","eslint-plugin-jsx-a11y":"^1.5.3","eslint-plugin-react":"^5.2.2","expect":"^1.20.1","mocha":"^2.5.3","react-addons-test-utils":"^15.1.0","react-dom":"^15.1.0","rimraf":"^2.5.2","webpack":"^1.13.1"},"dependencies":{"codemirror":"^5.16.0","es6template":"^1.0.4","fclone":"^1.0.8","javascript-stringify":"^1.1.1","object-path":"^0.11.1","react":"^15.1.0","react-codemirror":"^0.2.6","simple-diff":"^1.3.0"},"gitHead":"7f37757619991e4c1b06e9e2239869e0c07cfc59","_id":"redux-devtools-test-generator@0.2.0-alpha-7","_shasum":"31bc56b1f89023d894782025641e53dff4da0393","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.8.0","_npmUser":{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"},"dist":{"shasum":"31bc56b1f89023d894782025641e53dff4da0393","tarball":"http://registry-npm.ywwl.com/redux-devtools-test-generator/download/redux-devtools-test-generator-0.2.0-alpha-7.tgz","integrity":"sha512-QOsLq1gp+oku/xBEMWp20yozhYHh2vpUfVrVF8aHDqMiO/rksge2oLYO0JeCDZGiywC3v1Padt81Qfvd9d6GgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHPOJE3FcAOg1C2dJPc3aA0lKNDB7+30DzhmQMkqOw53AiBiyB2Q8RxIhKUSrfY+IjDClGHg3+OX2HGwqsHvdTJqig=="}],"size":6306,"noattachment":false,"key":"/redux-devtools-test-generator/-/redux-devtools-test-generator-0.2.0-alpha-7.tgz"},"maintainers":[{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/redux-devtools-test-generator-0.2.0-alpha-7.tgz_1471020703172_0.8623613170348108"},"directories":{},"readme":"# Redux DevTools Test Generator\n\n### Installation\n\n```\nnpm install --save-dev redux-devtools-test-generator\n```\n\n### Usage\n\nIf you use [Redux DevTools Extension](https://github.com/zalmoxisus/redux-devtools-extension), [Remote Redux DevTools](https://github.com/zalmoxisus/remote-redux-devtools) or [RemoteDev](https://github.com/zalmoxisus/remotedev), it's already there, and no additional actions required.\n\nWith [`redux-devtools`](https://github.com/reduxjs/redux-devtools) and [`redux-devtools-inspector`](https://github.com/reduxjs/redux-devtools/packages/redux-devtools-inspector):\n\n##### `containers/DevTools.js`\n\n```js\nimport React from 'react';\nimport { createDevTools } from 'redux-devtools';\nimport Inspector from 'redux-devtools-inspector';\nimport TestGenerator from 'redux-devtools-test-generator';\nimport mochaTemplate from 'redux-devtools-test-generator/lib/redux/mocha'; // If using default tests.\n\nconst testComponent = (props) => (\n  <TestGenerator\n    expect={mochaTemplate.expect} wrap={mochaTemplate.wrap} useCodemirror\n    {...props}\n  />\n);\n\nexport default createDevTools(\n  <Inspector\n    tabs: defaultTabs => [...defaultTabs, { name: 'Test', component: testComponent }]\n  />\n);\n```\n\nInstead of `mochaTemplate.expect` and `mochaTemplate.wrap` you can use your function templates.\n\nIf `useCodemirror` specified, include `codemirror/lib/codemirror.css` style and optionally themes from `codemirror/theme/`.\n\n### Props\n\n| Name              | Description                                                                                                                                                                                                                                                                                                                                                                                                  |\n| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `assertion`       | String template or function with an object argument containing `action`, `prevState`, `curState` keys, which returns a string representing the assertion (see the [function](https://github.com/zalmoxisus/redux-devtools-test-generator/blob/master/src/redux/mocha/index.js#L1-L3) or [template](https://github.com/zalmoxisus/redux-devtools-test-generator/blob/master/src/redux/mocha/template.js#L1)). |\n| [`wrap`]          | Optional string template or function which gets `assertions` argument and returns a string (see the example [function](https://github.com/zalmoxisus/redux-devtools-test-generator/blob/master/src/redux/mocha/index.js#L5-L14) or [template](https://github.com/zalmoxisus/redux-devtools-test-generator/blob/master/src/redux/mocha/template.js#L3-L12)).                                                  |\n| [`useCodemirror`] | Boolean. If specified will use codemirror styles.                                                                                                                                                                                                                                                                                                                                                            |\n| [`theme`]         | String. Name of [the codemirror theme](https://codemirror.net/demo/theme.html).                                                                                                                                                                                                                                                                                                                              |\n\n### License\n\nMIT\n","publish_time":1471020705216,"_cnpm_publish_time":1471020705216,"dist-tags":{"latest":"0.6.2"}}