Skip to content

The open alternative to Salesforce, designed for AI.

516 B
Raw Blame
import { getLogsSwitchExitFrames } from '@/navigation/utils/getLogsSwitchExitFrames';

describe('getLogsSwitchExitFrames', () => {
  it('switches the label back to the regular font letter by letter', () => {
    expect(
      getLogsSwitchExitFrames('Dev').map(
        ({ text, codeFontStart, codeFontEnd }) => [
          text,
          codeFontStart,
          codeFontEnd,
        ],
      ),
    ).toEqual([
      ['Dev', 0, 3],
      ['Dev', 1, 3],
      ['Dev', 2, 3],
      ['Dev', 3, 3],
    ]);
  });
});