From dce0701f73b4dcba4ce6efd0b80aadfc4f97c7ce Mon Sep 17 00:00:00 2001 From: Devlin Junker Date: Sun, 3 Sep 2023 18:08:21 -0700 Subject: [PATCH] add unit tests and little more cleanup of uncessary lines Signed-off-by: Devlin Junker --- src/App.vue | 1 - .../feed-display/FeedItemDisplayList.vue | 15 +++- .../unit/components/routes/All.spec.ts | 65 ++++++++++++++ .../unit/components/routes/Folder.spec.ts | 89 +++++++++++++++++++ .../unit/services/item.service.spec.ts | 33 ++++++- tests/javascript/unit/store/item.spec.ts | 15 ++++ 6 files changed, 213 insertions(+), 5 deletions(-) create mode 100644 tests/javascript/unit/components/routes/All.spec.ts create mode 100644 tests/javascript/unit/components/routes/Folder.spec.ts diff --git a/src/App.vue b/src/App.vue index 97383c440f..930c8b0481 100644 --- a/src/App.vue +++ b/src/App.vue @@ -24,7 +24,6 @@ export default Vue.extend({ async created() { await this.$store.dispatch(ACTIONS.FETCH_FOLDERS) await this.$store.dispatch(ACTIONS.FETCH_FEEDS) - await this.$store.dispatch(ACTIONS.FETCH_STARRED) }, }) diff --git a/src/components/feed-display/FeedItemDisplayList.vue b/src/components/feed-display/FeedItemDisplayList.vue index 8fc58281ec..44e4b070a9 100644 --- a/src/components/feed-display/FeedItemDisplayList.vue +++ b/src/components/feed-display/FeedItemDisplayList.vue @@ -1,6 +1,6 @@