Skip to content

Commit a3d356a

Browse files
committed
chore(*): fix tests for start call
1 parent d48c9fb commit a3d356a

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

src/components/__tests__/UISref.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ describe('<UISref>', () => {
3737
router.plugin(servicesPlugin);
3838
router.plugin(pushStateLocationPlugin);
3939
states.forEach(state => router.stateRegistry.register(state));
40-
router.start();
4140
});
4241

4342
it('renders its child with injected props', () => {

src/components/__tests__/UISrefActive.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ describe('<UISrefActive>', () => {
9797
router.plugin(pushStateLocationPlugin);
9898
router.stateService.defaultErrorHandler(() => {});
9999
states.forEach(state => router.stateRegistry.register(state));
100-
router.start();
101100
});
102101

103102
it('renders its child', () => {

src/components/__tests__/UIView.test.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ describe('<UIView>', () => {
5858
beforeEach(() => {
5959
router = new UIRouterReact();
6060
router.plugin(memoryLocationPlugin);
61-
router.start();
6261
});
6362

6463
it('renders an empty <div>', () => {
@@ -102,7 +101,6 @@ describe('<UIView>', () => {
102101
router.plugin(servicesPlugin);
103102
router.plugin(memoryLocationPlugin);
104103
states.forEach(state => router.stateRegistry.register(state));
105-
router.start();
106104
});
107105

108106
it('renders its State Component', () => {
@@ -121,7 +119,6 @@ describe('<UIView>', () => {
121119
it('injects the right props', () => {
122120
const Comp = () => <span>component</span>;
123121
router.stateRegistry.register({name: '__state', component: Comp});
124-
router.start();
125122
const wrapper = mount(
126123
<UIRouter router={router}>
127124
<UIView />
@@ -141,7 +138,6 @@ describe('<UIView>', () => {
141138
component: Comp,
142139
resolve: [{token: 'foo', resolveFn: () => 'bar'}],
143140
});
144-
router.start();
145141
const wrapper = mount(
146142
<UIRouter router={router}>
147143
<UIView />
@@ -234,7 +230,6 @@ describe('<UIView>', () => {
234230
router.stateRegistry.register(
235231
{name: 'exit', component: Exit} as ReactStateDeclaration,
236232
);
237-
router.start();
238233
const wrapper = mount(
239234
<UIRouter router={router}>
240235
<UIView />

0 commit comments

Comments
 (0)