@@ -43,10 +43,7 @@ function injectAuth(metadata: Record<string, string> | undefined) {
4343test ( "digitalocean provider autoloads from DIGITALOCEAN_ACCESS_TOKEN" , async ( ) => {
4444 await using tmp = await tmpdir ( {
4545 init : async ( dir ) => {
46- await Bun . write (
47- path . join ( dir , "opencode.json" ) ,
48- JSON . stringify ( { $schema : "https://opencode.ai/config.json" } ) ,
49- )
46+ await Bun . write ( path . join ( dir , "opencode.json" ) , JSON . stringify ( { $schema : "https://opencode.ai/config.json" } ) )
5047 } ,
5148 } )
5249 await WithInstance . provide ( {
@@ -68,10 +65,7 @@ test("digitalocean provider autoloads from DIGITALOCEAN_ACCESS_TOKEN", async ()
6865test ( "digitalocean provider.models surfaces cached routers from auth metadata" , async ( ) => {
6966 await using tmp = await tmpdir ( {
7067 init : async ( dir ) => {
71- await Bun . write (
72- path . join ( dir , "opencode.json" ) ,
73- JSON . stringify ( { $schema : "https://opencode.ai/config.json" } ) ,
74- )
68+ await Bun . write ( path . join ( dir , "opencode.json" ) , JSON . stringify ( { $schema : "https://opencode.ai/config.json" } ) )
7569 } ,
7670 } )
7771 injectAuth ( {
@@ -100,10 +94,7 @@ test("digitalocean provider.models surfaces cached routers from auth metadata",
10094test ( "digitalocean provider.models skips refresh when oauth bearer is expired" , async ( ) => {
10195 await using tmp = await tmpdir ( {
10296 init : async ( dir ) => {
103- await Bun . write (
104- path . join ( dir , "opencode.json" ) ,
105- JSON . stringify ( { $schema : "https://opencode.ai/config.json" } ) ,
106- )
97+ await Bun . write ( path . join ( dir , "opencode.json" ) , JSON . stringify ( { $schema : "https://opencode.ai/config.json" } ) )
10798 } ,
10899 } )
109100 injectAuth ( {
@@ -125,10 +116,7 @@ test("digitalocean provider.models skips refresh when oauth bearer is expired",
125116test ( "digitalocean provider.models passes through base models when no auth metadata" , async ( ) => {
126117 await using tmp = await tmpdir ( {
127118 init : async ( dir ) => {
128- await Bun . write (
129- path . join ( dir , "opencode.json" ) ,
130- JSON . stringify ( { $schema : "https://opencode.ai/config.json" } ) ,
131- )
119+ await Bun . write ( path . join ( dir , "opencode.json" ) , JSON . stringify ( { $schema : "https://opencode.ai/config.json" } ) )
132120 } ,
133121 } )
134122 await WithInstance . provide ( {
0 commit comments