Commit 4a4c9799 authored by tom's avatar tom

test

parent 5920dba7
...@@ -16,6 +16,15 @@ test('status code 404', async({ mount }) => { ...@@ -16,6 +16,15 @@ test('status code 404', async({ mount }) => {
await expect(component).toHaveScreenshot(); await expect(component).toHaveScreenshot();
}); });
test('status code 422', async({ mount }) => {
const component = await mount(
<TestApp>
<AppError statusCode={ 422 }/>
</TestApp>,
);
await expect(component).toHaveScreenshot();
});
test('status code 500', async({ mount }) => { test('status code 500', async({ mount }) => {
const component = await mount( const component = await mount(
<TestApp> <TestApp>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment