|
|
@ -16,7 +16,6 @@ expect.extend({ toMatchImageSnapshot }); |
|
|
|
|
|
|
|
// eslint-disable-next-line jest/no-export
|
|
|
|
export default function imageTest(component: React.ReactElement) { |
|
|
|
describe(`Image test`, () => { |
|
|
|
it('component image screenshot should correct', async () => { |
|
|
|
MockDate.set(moment('2016-11-22').valueOf()); |
|
|
|
await page.goto(`file://${process.cwd()}/tests/index.html`); |
|
|
@ -32,7 +31,6 @@ export default function imageTest(component: React.ReactElement) { |
|
|
|
|
|
|
|
MockDate.reset(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
type Options = { |
|
|
|