test: enable all demo snapshots

This commit is contained in:
chenjiahan
2020-11-08 20:30:51 +08:00
parent cd9c36fe38
commit 24c4896a11
181 changed files with 10306 additions and 7520 deletions

View File

@@ -11,7 +11,7 @@ const EmptyComponent = {
};
export function snapshotDemo(Demo: any, option: any = {}) {
test('renders demo correctly', async () => {
test('should render demo and match snapshot', async () => {
if (option.beforeTest) {
option.beforeTest();
}