<?php

it('shortens external ids for picker display', function () {
    expect(\App\Livewire\BackupSetPolicyPickerTable::externalIdShort('00000000-0000-0000-0000-1234abcd'))
        ->toBe('1234abcd');

    expect(\App\Livewire\BackupSetPolicyPickerTable::externalIdShort(null))
        ->toBe('—');
});
