Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions packages/cloud-agent-sdk/src/remote-command-catalog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,17 +307,3 @@ describe('parseRemoteCommandCatalog', () => {
}
});
});

describe('RemoteCommandState', () => {
it('always carries a `commands` array (empty when none discovered)', () => {
// The state is a public surface; consumers must be able to read
// `state.commands` unconditionally instead of tracking the cache
// separately.
const state = {
ownerConnectionId: null,
refresh: 'idle' as const,
commands: [] as never[],
};
expect(Array.isArray(state.commands)).toBe(true);
});
});
19 changes: 1 addition & 18 deletions packages/event-service/src/__tests__/deadline.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { describe, it, expect, vi } from 'vitest';
import {
RequestDeadlineError,
CONTROL_PLANE_DEADLINE_MS,
SEND_DEADLINE_MS,
withDeadline,
} from '../deadline';
import { RequestDeadlineError, withDeadline } from '../deadline';

/**
* Hermes (React Native) whatwg-fetch rejects with a generic `AbortError`
Expand Down Expand Up @@ -261,18 +256,6 @@ describe('RequestDeadlineError', () => {
});
});

describe('CONTROL_PLANE_DEADLINE_MS', () => {
it('is 15 seconds', () => {
expect(CONTROL_PLANE_DEADLINE_MS).toBe(15_000);
});
});

describe('SEND_DEADLINE_MS', () => {
it('is 30 seconds', () => {
expect(SEND_DEADLINE_MS).toBe(30_000);
});
});

describe('forbidden APIs', () => {
it('never calls AbortSignal.timeout or AbortSignal.any', async () => {
// withDeadline must use manual AbortController + setTimeout, not the
Expand Down
16 changes: 1 addition & 15 deletions packages/wl-sdk/src/dolthub/api.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import { describe, expect, it } from 'vitest';
import {
DOLTHUB_API_BASE,
DOLTHUB_WEB_BASE,
WlDoltHubError,
buildDoltUrl,
doltFetch,
expectOk,
} from './api';
import { DOLTHUB_API_BASE, WlDoltHubError, buildDoltUrl, doltFetch, expectOk } from './api';

type FetchCall = { url: string; init: RequestInit | undefined };

Expand All @@ -26,13 +19,6 @@ function mockFetch(
return { fetch: fakeFetch, calls };
}

describe('constants', () => {
it('exposes the correct base URLs', () => {
expect(DOLTHUB_API_BASE).toBe('https://www.dolthub.com/api/v1alpha1');
expect(DOLTHUB_WEB_BASE).toBe('https://www.dolthub.com');
});
});

describe('buildDoltUrl', () => {
it('returns the bare path when no query is given', () => {
expect(buildDoltUrl('/foo/bar')).toBe(`${DOLTHUB_API_BASE}/foo/bar`);
Expand Down