@storex/core
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,2 +0,1 @@ | ||
export * from "./binding"; | ||
export * from "./react"; | ||
export * from "./core"; |
@@ -6,4 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./binding")); | ||
__export(require("./react")); | ||
__export(require("./core")); | ||
//# sourceMappingURL=index.js.map |
@@ -1,23 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const React = require("react"); | ||
const enzyme_1 = require("enzyme"); | ||
const enzyme = require("enzyme"); | ||
const examples_1 = require("./examples"); | ||
const react_1 = require("./react"); | ||
const Adapter = require("enzyme-adapter-react-16"); | ||
enzyme.configure({ adapter: new Adapter() }); | ||
let store = new examples_1.StoreIns(); | ||
const test = () => { | ||
const Comp = (React.createElement(react_1.StoreWrapper, { store: store }, (_store) => (React.createElement("ul", null, _store.args1.map(str => React.createElement("li", { key: str }, str)))))); | ||
const arg = "arg1"; | ||
const wrapper = enzyme_1.shallow(Comp); | ||
store.action1(arg); | ||
setTimeout(() => { | ||
console.log(wrapper.text()); | ||
// expect(wrapper.text()).toContain(arg); | ||
wrapper.unmount(); | ||
}, 2); | ||
}; | ||
test(); | ||
//# sourceMappingURL=main.js.map |
{ | ||
"name": "@storex/core", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Binding store to your app", | ||
"main": "lib/main.js", | ||
"main": "lib/index.js", | ||
"scope": "@storex", | ||
@@ -7,0 +7,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
21321
31
592