ribcage-gen
Advanced tools
Comparing version 3.2.1 to 3.2.2
{ | ||
"name": "ribcage-gen", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "A generator script for ribcage components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,2 +18,16 @@ import test from 'tape' | ||
// NOTE: if you're using redux, you'll need to change this test to | ||
// `<PageComponent.DecoratedComponent />` | ||
// NOTE: this test can be annoying but it triggers off many other automatic | ||
// tests that are important to have pass. Have your component return `null` | ||
// rather than throwing | ||
// NOTE: For real, don't remove this test, _especially_ if this is page | ||
const _warn = console.warn | ||
console.warn = noop | ||
t.doesNotThrow( | ||
testTree.bind(React, <{{PascalName}} />) | ||
, 'does not throw when there are no props, to ensure a loading state is possible' | ||
) | ||
console.warn = _warn | ||
t.end() | ||
@@ -20,0 +34,0 @@ }) |
22517
597