This commit is contained in:
pa
2026-03-04 21:56:33 +09:00
parent 905999b9ae
commit decb96214a
15 changed files with 28 additions and 28 deletions
@@ -3,7 +3,7 @@ import {
GROUP_EXACT_TYPES,
getNotificationCategory,
getNotificationTs
} from '../notificationCategory';
} from '../utils/notificationCategory';
describe('getNotificationCategory', () => {
test('returns "other" for falsy type', () => {
@@ -2,7 +2,7 @@ import {
getNotificationMessage,
getUserIdFromNoty,
toNotificationText
} from '../notificationMessage';
} from '../utils/notificationMessage';
// Mock displayLocation to return a predictable string
vi.mock('../utils', () => ({
+1 -1
View File
@@ -1,4 +1,4 @@
import { resolveRef } from '../resolveRef';
import { resolveRef } from '../utils/resolveRef';
describe('resolveRef', () => {
const emptyDefault = { id: '', name: '' };
+1 -1
View File
@@ -1,5 +1,5 @@
import { useFriendStore, useUserStore } from '../../stores';
import { database } from '../../service/database.js';
import { database } from '../../service/database';
/**
* @returns {Promise<void>}
@@ -1,4 +1,4 @@
import { displayLocation } from './utils';
import { displayLocation } from './locationParser';
/**
* Extracts the notification title and body from a notification object.