Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

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

import { isTerminalImageMoveJobState } from './imageStorageMaintenanceUtils';

describe(isTerminalImageMoveJobState.name, () => {
  it('recognizes committed and partial-success jobs as terminal', () => {
    expect(isTerminalImageMoveJobState('committed')).toBe(true);
    expect(isTerminalImageMoveJobState('error')).toBe(true);
  });

  it('does not recognize active jobs as terminal', () => {
    expect(isTerminalImageMoveJobState('planned')).toBe(false);
    expect(isTerminalImageMoveJobState('moving')).toBe(false);
    expect(isTerminalImageMoveJobState('moved')).toBe(false);
    expect(isTerminalImageMoveJobState(undefined)).toBe(false);
  });
});