Skip to content

Commit

Permalink
✅ test: 修正测试
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jun 3, 2021
1 parent f74b0a2 commit afeb797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/image-gallery/tests/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { images } from './data';

describe('ImageGallery', () => {
it('默认状态', () => {
const { container } = render(<ImageGallery imageList={[]} />);
const { container } = render(<ImageGallery data={[]} />);
expect(container).toMatchSnapshot();
});

it('加载数据', () => {
const { container } = render(<ImageGallery imageList={images} />);
const { container } = render(<ImageGallery data={images} />);
expect(container).toMatchSnapshot();
});
});

0 comments on commit afeb797

Please sign in to comment.