mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-08-31 02:05:31 +08:00
12 lines
551 B
TypeScript
12 lines
551 B
TypeScript
import { describe, expect, test } from 'bun:test';
|
|
import { supportsPluginVersionSelection } from '../src/features/plugins/pluginReleaseVersions';
|
|
|
|
describe('plugin version selection', () => {
|
|
test('allows custom versions only for GitHub release installs', () => {
|
|
expect(supportsPluginVersionSelection('github-release')).toBe(true);
|
|
expect(supportsPluginVersionSelection(' GitHub-Release ')).toBe(true);
|
|
expect(supportsPluginVersionSelection('direct')).toBe(false);
|
|
expect(supportsPluginVersionSelection('')).toBe(false);
|
|
});
|
|
});
|