@@ -4,7 +4,7 @@ import { describe, test, expect, expectTypeOf, beforeEach, vi } from "vitest"
44import  {  registerEndpoint  }  from  "@nuxt/test-utils/runtime" 
55import  back_schemas  from  "@geode/opengeodeweb-back/schemas.json" 
66
7- describe ( "Geode Store" ,  async   ( )  =>  { 
7+ describe ( "Geode Store" ,  ( )  =>  { 
88  const  pinia  =  createTestingPinia ( { 
99    stubActions : false , 
1010  } ) 
@@ -20,7 +20,7 @@ describe("Geode Store", async () => {
2020  } ) 
2121
2222  describe ( "state" ,  ( )  =>  { 
23-     test ( "initial state" ,  async   ( )  =>  { 
23+     test ( "initial state" ,  ( )  =>  { 
2424      expectTypeOf ( geode_store . default_local_port ) . toBeString ( ) 
2525      expectTypeOf ( geode_store . request_counter ) . toBeNumber ( ) 
2626      expectTypeOf ( geode_store . is_running ) . toBeBoolean ( ) 
@@ -59,26 +59,19 @@ describe("Geode Store", async () => {
5959
6060    describe ( "base_url" ,  ( )  =>  { 
6161      test ( "test is_cloud false" ,  ( )  =>  { 
62-         console . log ( "is_cloud" ) 
6362        infra_store . is_cloud  =  false 
64-         console . log ( "is_cloud" ) 
6563        infra_store . domain_name  =  "localhost" 
66-         console . log ( "is_cloud" ) 
67-         const  url  =  geode_store . port 
68-         console . log ( "port" ,  url ) 
69-         const  url2  =  geode_store . base_url 
70-         console . log ( "base_url" ,  url2 ) 
7164        expect ( geode_store . base_url ) . toBe ( "http://localhost:5000" ) 
7265      } ) 
73-       test ( "test is_cloud true" ,  async   ( )  =>  { 
66+       test ( "test is_cloud true" ,  ( )  =>  { 
7467        infra_store . is_cloud  =  true 
7568        infra_store . ID  =  "123456" 
7669        infra_store . domain_name  =  "example.com" 
7770        expect ( geode_store . base_url ) . toBe ( 
7871          "https://example.com:443/123456/geode" , 
7972        ) 
8073      } ) 
81-       test ( "test is_cloud true, ID empty" ,  async   ( )  =>  { 
74+       test ( "test is_cloud true, ID empty" ,  ( )  =>  { 
8275        infra_store . is_cloud  =  true 
8376        infra_store . ID  =  "" 
8477        infra_store . domain_name  =  "example.com" 
@@ -100,8 +93,8 @@ describe("Geode Store", async () => {
10093    } ) 
10194  } ) 
10295
103-   describe ( "actions" ,  async   ( )  =>  { 
104-     describe ( "do_ping" ,  async   ( )  =>  { 
96+   describe ( "actions" ,  ( )  =>  { 
97+     describe ( "do_ping" ,  ( )  =>  { 
10598      const  getFakeCall  =  vi . fn ( ) 
10699      registerEndpoint ( back_schemas . opengeodeweb_back . ping . $id ,  getFakeCall ) 
107100
0 commit comments