|
1 | | -import App, { TAction, TApp } from 'overmind' |
| 1 | +import { Overmind, TAction, TApp } from 'overmind' |
2 | 2 | import * as React from 'react' |
3 | 3 | import * as renderer from 'react-test-renderer' |
4 | 4 |
|
5 | | -import createConnect, { TConnect } from './' |
| 5 | +import { TConnect, createConnect } from './' |
6 | 6 |
|
7 | 7 | describe('React', () => { |
8 | 8 | test('should connect state and actions to stateless components', () => { |
@@ -31,7 +31,7 @@ describe('React', () => { |
31 | 31 | } |
32 | 32 | }> |
33 | 33 |
|
34 | | - const app = new App(config) |
| 34 | + const app = new Overmind(config) |
35 | 35 |
|
36 | 36 | type Action<Input = void, Output = any> = TAction<IApp, Input, Output> |
37 | 37 |
|
@@ -73,7 +73,7 @@ describe('React', () => { |
73 | 73 | } |
74 | 74 | }> |
75 | 75 |
|
76 | | - const app = new App(config) |
| 76 | + const app = new Overmind(config) |
77 | 77 |
|
78 | 78 | type Action<Input = void, Output = any> = TAction<IApp, Input, Output> |
79 | 79 |
|
@@ -119,7 +119,7 @@ describe('React', () => { |
119 | 119 | } |
120 | 120 | }> |
121 | 121 |
|
122 | | - const app = new App(config) |
| 122 | + const app = new Overmind(config) |
123 | 123 |
|
124 | 124 | type Action<Input = void, Output = any> = TAction<IApp, Input, Output> |
125 | 125 |
|
@@ -150,7 +150,7 @@ describe('React', () => { |
150 | 150 | }) |
151 | 151 |
|
152 | 152 | test('should preserve component name', () => { |
153 | | - const app = new App({}) |
| 153 | + const app = new Overmind({}) |
154 | 154 | const connect = createConnect(app) |
155 | 155 |
|
156 | 156 | class FooComponent extends React.Component<TConnect<typeof app>> { |
|
0 commit comments