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.

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

import { isGithubRepoUrl } from './githubRepoUrl';

describe('isGithubRepoUrl', () => {
  it('accepts a repo URL padded with whitespace', () => {
    expect(isGithubRepoUrl(' https://github.com/lobehub/lobehub\n')).toBe(true);
  });

  it('rejects non-GitHub URLs', () => {
    expect(isGithubRepoUrl('https://gitlab.com/lobehub/lobehub')).toBe(false);
  });
});