Skip to content

🀯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

548 B
Raw Blame
import { describe, expect, it } from 'vitest';

import { projectFavoriteTarget } from './projectFavorite';

describe('projectFavoriteTarget', () => {
  // A slug can be renamed from Project Settings, so the favorite keeps the id link.
  it('favorites the project under its id, not its renameable slug', () => {
    expect(projectFavoriteTarget({ avatar: 'πŸš€', id: 'proj_1', name: 'LobeHub' })).toEqual({
      icon: 'πŸš€',
      path: '/project/proj_1',
      targetId: 'proj_1',
      title: 'LobeHub',
      type: 'project',
    });
  });
});