Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
test: fix test by pathToRegexp
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Nov 15, 2019
1 parent 5dbc7b1 commit 93897fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/SiderMenu/SiderMenuUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pathToRegexp from 'path-to-regexp';
import { pathToRegexp } from 'path-to-regexp';
import { BaseMenuProps } from './BaseMenu';
import { MenuDataItem } from '../typings';
import { urlToList } from '../utils/pathTools';
Expand Down
2 changes: 1 addition & 1 deletion src/getPageTitle.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pathToRegexp from 'path-to-regexp';
import { pathToRegexp } from 'path-to-regexp';
import { MenuDataItem } from './typings';
import { Settings } from './defaultSettings';

Expand Down
2 changes: 1 addition & 1 deletion src/utils/getBreadcrumbProps.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import H from 'history';
import { BreadcrumbProps as AntdBreadcrumbProps } from 'antd/es/breadcrumb';
import React from 'react';
import pathToRegexp from 'path-to-regexp';
import { pathToRegexp } from 'path-to-regexp';
import { Settings } from '../defaultSettings';
import { MenuDataItem, MessageDescriptor } from '../typings';
import { urlToList } from './pathTools';
Expand Down
1 change: 1 addition & 0 deletions tests/__tests__/__snapshots__/settingDrawer.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports[`settingDrawer.test base user 1`] = `
>
<div
class="ant-drawer-wrapper-body"
style="overflow:auto;height:100%"
>
<div
class="ant-drawer-header-no-title"
Expand Down

1 comment on commit 93897fe

@yoyo837
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这有问题吧 亲

Please sign in to comment.