Skip to content

Commit 7f004d4

Browse files
nickwesselmanericlee878
authored andcommitted
dev store casing
1 parent 130751f commit 7f004d4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/app/src/cli/services/dev/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export async function fetchOrgFromId(
117117
* @param org - Organization
118118
* @param storeFqdn - store domain fqdn
119119
* @param developerPlatformClient - The client to access the platform API
120-
* @param includeAllStores - Whether to include all store types or only Dev Stores
120+
* @param includeAllStores - Whether to include all store types or only dev stores
121121
*/
122122
export async function fetchStore(
123123
org: Organization,

packages/app/src/cli/services/graphql/common.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ describe('validateMutationStore', () => {
288288
storeType: 'PRODUCTION',
289289
}
290290

291-
test('allows queries on Dev Stores', () => {
291+
test('allows queries on dev stores', () => {
292292
const query = 'query { shop { name } }'
293293

294294
expect(() => validateMutationStore(query, devStore)).not.toThrow()
@@ -300,7 +300,7 @@ describe('validateMutationStore', () => {
300300
expect(() => validateMutationStore(query, nonDevStore)).not.toThrow()
301301
})
302302

303-
test('allows mutations on Dev Stores', () => {
303+
test('allows mutations on dev stores', () => {
304304
const mutation = 'mutation { productUpdate(input: {}) { product { id } } }'
305305

306306
expect(() => validateMutationStore(mutation, devStore)).not.toThrow()
@@ -309,12 +309,12 @@ describe('validateMutationStore', () => {
309309
test('throws when attempting mutation on non-dev store', () => {
310310
const mutation = 'mutation { productUpdate(input: {}) { product { id } } }'
311311

312-
expect(() => validateMutationStore(mutation, nonDevStore)).toThrow('Mutations can only be executed on Dev Stores')
312+
expect(() => validateMutationStore(mutation, nonDevStore)).toThrow('Mutations can only be executed on dev stores')
313313
})
314314

315315
test('includes store domain in error message for non-dev store mutations', () => {
316316
const mutation = 'mutation { productUpdate(input: {}) { product { id } } }'
317317

318-
expect(() => validateMutationStore(mutation, nonDevStore)).toThrow('Dev Stores')
318+
expect(() => validateMutationStore(mutation, nonDevStore)).toThrow('dev stores')
319319
})
320320
})

packages/app/src/cli/services/graphql/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,14 @@ export function isMutation(graphqlOperation: string): boolean {
130130
}
131131

132132
/**
133-
* Validates that mutations can only be executed on Dev Stores.
133+
* Validates that mutations can only be executed on dev stores.
134134
*
135135
* @param graphqlOperation - The GraphQL operation to validate.
136136
* @param store - The store where the operation will be executed.
137137
* @throws AbortError if attempting to run a mutation on a non-dev store.
138138
*/
139139
export function validateMutationStore(graphqlOperation: string, store: OrganizationStore): void {
140140
if (isMutation(graphqlOperation) && store.storeType !== 'APP_DEVELOPMENT') {
141-
throw new AbortError(`Mutations can only be executed on Dev Stores.`)
141+
throw new AbortError(`Mutations can only be executed on dev stores.`)
142142
}
143143
}

0 commit comments

Comments
 (0)