summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevlin Junker <devlin.junker@gmail.com>2022-10-02 20:58:55 -0700
committerBenjamin Brahmer <info@b-brahmer.de>2022-11-02 11:27:20 +0100
commit902ff04ac2fabb47eed1087927ab2acc75693cd0 (patch)
tree86968588fdd2174cdc7e2c51743ce6f597864e39
parenta81cd40b00c8a004d844bed7fb697baf65b3d7e0 (diff)
outline Sidebar specs
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
-rw-r--r--src/components/Explore.vue8
-rw-r--r--tests/javascript/unit/components/Sidebar.spec.ts29
2 files changed, 8 insertions, 29 deletions
diff --git a/src/components/Explore.vue b/src/components/Explore.vue
index 64186fb14..214d55c90 100644
--- a/src/components/Explore.vue
+++ b/src/components/Explore.vue
@@ -67,14 +67,6 @@ const ExploreComponent = Vue.extend({
const exploreUrl = settings.data.settings.exploreUrl + 'feeds.en.json'
const explore = await axios.get(exploreUrl)
- this.exploreSites.push({
- title: 'test',
- favicon: 'string',
- url: 'http://test.com',
- feed: '',
- description: 'testing test',
- votes: 2,
- })
Object.keys(explore.data).forEach((key) =>
explore.data[key].forEach((value: ExploreSite) =>
this.exploreSites.push(value),
diff --git a/tests/javascript/unit/components/Sidebar.spec.ts b/tests/javascript/unit/components/Sidebar.spec.ts
index 73a70f728..b8c0ab1fc 100644
--- a/tests/javascript/unit/components/Sidebar.spec.ts
+++ b/tests/javascript/unit/components/Sidebar.spec.ts
@@ -1,24 +1,3 @@
-/**
- * Nextcloud - Tasks
- *
- * @author Raimund Schlüßler
- *
- * @copyright 2021 Raimund Schlüßler <raimund.schluessler@mailbox.org>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
- *
- * You should have received a copy of the GNU Affero General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- *
- */
import AppSidebar from 'Components/Sidebar.vue'
import { store, localVue } from '../setupStore'
@@ -33,4 +12,12 @@ describe('Sidebar.vue', () => {
expect(wrapper.vm.$data.showAddFeed).toBeFalsy
});
+
+ it('should dispatch message to store with folder name to create new folder');
+
+ it('should dispatch message to store with folder object on delete folder')
+
+ it('should set showAddFeed to true')
+
+ it('should set showAddFeed to false')
})