/// <reference types="bun-types" />
import { describe, expect, test } from 'bun:test';
import { slugify } from '../../src/index';

describe('slugify', () => {
  test('normalizes and trims', () => {
    expect(slugify('  Hello World!  ')).toBe('hello-world');
  });

  test('removes consecutive non-alphanumerics', () => {
    expect(slugify('Feature__Name--Test')).toBe('feature-name-test');
  });
});