@@ -8,11 +8,9 @@ import {
88 adminFqdn ,
99} from './fqdn.js'
1010import { Environment , serviceEnvironment } from '../../../private/node/context/service.js'
11- import { blockPartnersAccess } from '../environment.js'
1211import { expect , describe , test , vi } from 'vitest'
1312
1413vi . mock ( '../../../private/node/context/service.js' )
15- vi . mock ( '../environment.js' )
1614
1715vi . mock ( '../vendor/dev_server/index.js' , ( ) => {
1816 return {
@@ -34,7 +32,6 @@ describe('partners', () => {
3432 test ( 'returns the local fqdn when the environment is local' , async ( ) => {
3533 // Given
3634 vi . mocked ( serviceEnvironment ) . mockReturnValue ( Environment . Local )
37- vi . mocked ( blockPartnersAccess ) . mockReturnValue ( false )
3835
3936 // When
4037 const got = await partnersFqdn ( )
@@ -46,7 +43,6 @@ describe('partners', () => {
4643 test ( 'returns the production fqdn when the environment is production' , async ( ) => {
4744 // Given
4845 vi . mocked ( serviceEnvironment ) . mockReturnValue ( Environment . Production )
49- vi . mocked ( blockPartnersAccess ) . mockReturnValue ( false )
5046
5147 // When
5248 const got = await partnersFqdn ( )
@@ -181,23 +177,23 @@ describe('adminFqdn', () => {
181177describe ( 'normalizeStore' , ( ) => {
182178 test ( 'parses store name with http' , async ( ) => {
183179 // When
184- const got = await normalizeStoreFqdn ( 'http://example.myshopify.com' )
180+ const got = normalizeStoreFqdn ( 'http://example.myshopify.com' )
185181
186182 // Then
187183 expect ( got ) . toEqual ( 'example.myshopify.com' )
188184 } )
189185
190186 test ( 'parses store name with https' , async ( ) => {
191187 // When
192- const got = await normalizeStoreFqdn ( 'https://example.myshopify.com' )
188+ const got = normalizeStoreFqdn ( 'https://example.myshopify.com' )
193189
194190 // Then
195191 expect ( got ) . toEqual ( 'example.myshopify.com' )
196192 } )
197193
198194 test ( 'parses store name without domain' , async ( ) => {
199195 // When
200- const got = await normalizeStoreFqdn ( 'example' )
196+ const got = normalizeStoreFqdn ( 'example' )
201197
202198 // Then
203199 expect ( got ) . toEqual ( 'example.myshopify.com' )
@@ -208,15 +204,15 @@ describe('normalizeStore', () => {
208204 vi . mocked ( serviceEnvironment ) . mockReturnValue ( Environment . Local )
209205
210206 // When
211- const got = await normalizeStoreFqdn ( 'example' )
207+ const got = normalizeStoreFqdn ( 'example' )
212208
213209 // Then
214210 expect ( got ) . toEqual ( 'example.myshopify.io' )
215211 } )
216212
217213 test ( 'parses store name with admin' , async ( ) => {
218214 // When
219- const got = await normalizeStoreFqdn ( 'https://example.myshopify.com/admin/' )
215+ const got = normalizeStoreFqdn ( 'https://example.myshopify.com/admin/' )
220216
221217 // Then
222218 expect ( got ) . toEqual ( 'example.myshopify.com' )
0 commit comments