偏右
5 years ago
committed by
afc163
2 changed files with 25 additions and 2 deletions
@ -0,0 +1,23 @@ |
|||
import * as React from 'react'; |
|||
import Result from '..'; |
|||
|
|||
describe('Result.typescript', () => { |
|||
it('status', () => { |
|||
const result = ( |
|||
<> |
|||
<Result |
|||
status="404" |
|||
title="404" |
|||
subTitle="Sorry, the page you visited does not exist." |
|||
/> |
|||
<Result |
|||
status={404} |
|||
title="404" |
|||
subTitle="Sorry, the page you visited does not exist." |
|||
/> |
|||
</> |
|||
); |
|||
|
|||
expect(result).toBeTruthy(); |
|||
}); |
|||
}); |
Loading…
Reference in new issue