mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
14 lines
508 B
TypeScript
14 lines
508 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
import { serverDatabaseShortName } from './databases';
|
|
|
|
describe('serverDatabaseShortName', () => {
|
|
it('keeps everything after the server prefix', () => {
|
|
expect(serverDatabaseShortName('s3_my_world')).toBe('my_world');
|
|
expect(serverDatabaseShortName('s12_survival')).toBe('survival');
|
|
});
|
|
|
|
it('returns a name without a prefix unchanged', () => {
|
|
expect(serverDatabaseShortName('standalone')).toBe('standalone');
|
|
});
|
|
});
|