mirror of
https://github.com/cline/cline.git
synced 2026-09-19 02:05:44 +08:00
* Centralize OAuth management to the SDK * Update mock * Cleanup TUI cline-account logic * clean save credentails * Remove unused code * Reduce mocks * use normalizeStoredAccessToken * Add Cline Pass * Properly read storageProviderId * Use the name for the model generation * Use the model for the capabilities lookup * Fix capability discovery * Fix getLastUsedProviderSettings * remove the provider id from the resolveWithSingleFlight return * Fix tests * Remove the entry.name check * Execute model API calls separetely * Hide Cline Pass pricing * Display cline-pass only if the feature flag is enabled * unselect cline pass when the feature flag is off * Store and read feature flag cache * Add comment * Do not return userId * fix tests * Revert unrelated changes
20 lines
490 B
TypeScript
20 lines
490 B
TypeScript
import { afterEach, describe, expect, it } from "vitest";
|
|
import {
|
|
disposeCliFeatureFlagsService,
|
|
getCliFeatureFlagsService,
|
|
} from "./feature-flags";
|
|
|
|
describe("CLI feature flags singleton", () => {
|
|
afterEach(async () => {
|
|
await disposeCliFeatureFlagsService();
|
|
});
|
|
|
|
it("recreates the singleton after disposal", async () => {
|
|
const service = getCliFeatureFlagsService();
|
|
|
|
await disposeCliFeatureFlagsService();
|
|
|
|
expect(getCliFeatureFlagsService()).not.toBe(service);
|
|
});
|
|
});
|