From 6e80579379a15cfcd1d683991f50bf0dabf4b093 Mon Sep 17 00:00:00 2001 From: CzBiX Date: Tue, 17 Sep 2019 14:40:00 +0800 Subject: [PATCH] Add more unit test --- src/components/drawer/FilterGroup.vue | 18 +--- src/components/types.ts | 16 ++++ src/store/config.ts | 22 +++-- tests/unit/components/FilterGroup.spec.ts | 107 ++++++++++++++++++++++ tests/unit/store/config.spec.ts | 82 +++++++++++++++++ tests/unit/store/index.spec.ts | 62 +++++++++++++ tests/unit/utils.ts | 16 +++- 7 files changed, 294 insertions(+), 29 deletions(-) create mode 100644 src/components/types.ts create mode 100644 tests/unit/components/FilterGroup.spec.ts create mode 100644 tests/unit/store/config.spec.ts create mode 100644 tests/unit/store/index.spec.ts diff --git a/src/components/drawer/FilterGroup.vue b/src/components/drawer/FilterGroup.vue index 3c8096c..1083880 100644 --- a/src/components/drawer/FilterGroup.vue +++ b/src/components/drawer/FilterGroup.vue @@ -44,21 +44,7 @@