import { describe, expect, it } from 'vitest';

import { backupObjectKey, worldUploadObjectKey } from './client';

describe('storage object keys', () => {
  it('builds backup keys', () => {
    expect(backupObjectKey('srv-1', 'bak-1')).toBe(
      'servers/srv-1/backups/bak-1.tar.gz',
    );
  });

  it('builds world upload keys', () => {
    expect(worldUploadObjectKey('srv-1', 'up-1')).toBe(
      'servers/srv-1/uploads/up-1/world.tar.gz',
    );
  });
});
