aboutsummaryrefslogtreecommitdiffstats
path: root/frontend-vanilla/src/main.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend-vanilla/src/main.test.ts')
-rw-r--r--frontend-vanilla/src/main.test.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/frontend-vanilla/src/main.test.ts b/frontend-vanilla/src/main.test.ts
index 7dddc3f..7cad61a 100644
--- a/frontend-vanilla/src/main.test.ts
+++ b/frontend-vanilla/src/main.test.ts
@@ -4,12 +4,10 @@ import { router } from './router';
import {
renderLayout,
renderFeeds,
- renderTags,
renderFilters,
renderItems,
renderSettings,
fetchFeeds,
- fetchTags,
fetchItems,
init,
logout
@@ -76,6 +74,7 @@ describe('main application logic', () => {
expect(feedList?.innerHTML).toContain('Test Feed');
});
+ /* FIXME: Tags feature soft-deprecated
it('renderTags should populate tag list', () => {
renderLayout();
store.setTags([{ title: 'Test Tag' } as any]);
@@ -83,6 +82,7 @@ describe('main application logic', () => {
const tagList = document.getElementById('tag-list');
expect(tagList?.innerHTML).toContain('Test Tag');
});
+ */
it('renderFilters should update active filter', () => {
renderLayout();
@@ -118,6 +118,7 @@ describe('main application logic', () => {
expect(store.feeds[0].title).toBe('API Feed');
});
+ /* FIXME: Tags feature soft-deprecated
it('fetchTags should update store', async () => {
vi.mocked(apiFetch).mockResolvedValueOnce({
ok: true,
@@ -128,6 +129,7 @@ describe('main application logic', () => {
expect(store.tags).toHaveLength(1);
expect(store.tags[0].title).toBe('API Tag');
});
+ */
it('fetchItems should update store items', async () => {
vi.mocked(apiFetch).mockResolvedValueOnce({
@@ -348,6 +350,7 @@ describe('main application logic', () => {
getCurrentRouteSpy.mockRestore();
});
+ /* FIXME: Tags feature soft-deprecated
it('should navigate to tag when clicking tag from settings page', () => {
renderLayout();
store.setTags([{ title: 'Tech' } as any]);
@@ -363,6 +366,7 @@ describe('main application logic', () => {
expect(navigateSpy).toHaveBeenCalledWith('/tag/Tech', expect.any(Object));
getCurrentRouteSpy.mockRestore();
});
+ */
it('deleteFeed should call API', async () => {
vi.mocked(apiFetch).mockResolvedValueOnce({ ok: true } as Response);