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.

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

import { filterMyInboxTopics } from './scopeTogglePlacement';

describe('filterMyInboxTopics', () => {
  it('keeps only the rows the viewer started', () => {
    const topics = [
      { id: 'mine', userId: 'me' },
      { id: 'theirs', userId: 'teammate' },
    ];

    expect(filterMyInboxTopics(topics, 'me')).toEqual([topics[0]]);
  });
});