Skip to content

Commit 9f21e35

Browse files
committed
chore: remove platformHost from test mock configs
1 parent 56b8260 commit 9f21e35

19 files changed

Lines changed: 0 additions & 25 deletions

test/auth/resolver.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { Config } from '../../src/config/schema';
55
function makeConfig(overrides: Partial<Config> = {}): Config {
66
return {
77
region: 'global' as const,
8-
platformHost: 'https://platform.minimax.io',
98
oauthApiHost: 'https://account.minimax.io',
109
baseUrl: 'https://api.mmx.io',
1110
output: 'text',

test/client/http.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ function makeConfig(baseUrl: string): Config {
88
return {
99
apiKey: 'test-api-key',
1010
region: 'global',
11-
platformHost: 'https://platform.minimax.io',
1211
oauthApiHost: 'https://account.minimax.io',
1312
baseUrl,
1413
output: 'text',

test/commands/auth/login.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ describe('auth login command', () => {
1010
it('requires api key when method is api-key', async () => {
1111
const config = {
1212
region: 'global' as const,
13-
platformHost: 'https://platform.minimax.io',
1413
oauthApiHost: 'https://account.minimax.io',
1514
baseUrl: 'https://api.mmx.io',
1615
output: 'text' as const,

test/commands/auth/logout.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ describe('auth logout command', () => {
99
it('handles dry run', async () => {
1010
const config = {
1111
region: 'global' as const,
12-
platformHost: 'https://platform.minimax.io',
1312
oauthApiHost: 'https://account.minimax.io',
1413
baseUrl: 'https://api.mmx.io',
1514
output: 'text' as const,

test/commands/auth/refresh.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ describe('auth refresh command', () => {
99
it('errors when not using OAuth', async () => {
1010
const config = {
1111
region: 'global' as const,
12-
platformHost: 'https://platform.minimax.io',
1312
oauthApiHost: 'https://account.minimax.io',
1413
baseUrl: 'https://api.mmx.io',
1514
output: 'text' as const,

test/commands/auth/status.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ describe('auth status command', () => {
99
it('shows not authenticated when no credentials', async () => {
1010
const config = {
1111
region: 'global' as const,
12-
platformHost: 'https://platform.minimax.io',
1312
oauthApiHost: 'https://account.minimax.io',
1413
baseUrl: 'https://api.mmx.io',
1514
output: 'json' as const,

test/commands/config/set.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ describe('config set command', () => {
1515
it('requires key and value', async () => {
1616
const config = {
1717
region: 'global' as const,
18-
platformHost: 'https://platform.minimax.io',
1918
oauthApiHost: 'https://account.minimax.io',
2019
baseUrl: 'https://api.mmx.io',
2120
output: 'text' as const,
@@ -46,7 +45,6 @@ describe('config set command', () => {
4645
it('validates config key', async () => {
4746
const config = {
4847
region: 'global' as const,
49-
platformHost: 'https://platform.minimax.io',
5048
oauthApiHost: 'https://account.minimax.io',
5149
baseUrl: 'https://api.mmx.io',
5250
output: 'text' as const,

test/commands/config/show.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ describe('config show command', () => {
2121
const config = {
2222
apiKey: 'test-key',
2323
region: 'global' as const,
24-
platformHost: 'https://platform.minimax.io',
2524
oauthApiHost: 'https://account.minimax.io',
2625
baseUrl: 'https://api.mmx.io',
2726
output: 'json' as const,

test/commands/file/upload.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ describe('file upload command', () => {
1010
const config = {
1111
apiKey: 'test-key',
1212
region: 'global' as const,
13-
platformHost: 'https://platform.minimax.io',
1413
oauthApiHost: 'https://account.minimax.io',
1514
baseUrl: 'https://api.mmx.io',
1615
output: 'text' as const,

test/commands/image/generate.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ describe('image generate command', () => {
1010
const config = {
1111
apiKey: 'test-key',
1212
region: 'global' as const,
13-
platformHost: 'https://platform.minimax.io',
1413
oauthApiHost: 'https://account.minimax.io',
1514
baseUrl: 'https://api.mmx.io',
1615
output: 'text' as const,

0 commit comments

Comments
 (0)