File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -154,9 +154,10 @@ describe("database", () => {
154154 process . env [ name ] = "resolved-instance" ;
155155 try {
156156 const p = params . defineString ( name ) ;
157- expect (
158- database . getOpts ( { ref : "/foo" , instance : p } )
159- ) . to . deep . include ( { path : "foo" , instance : "resolved-instance" } ) ;
157+ expect ( database . getOpts ( { ref : "/foo" , instance : p } ) ) . to . deep . include ( {
158+ path : "foo" ,
159+ instance : "resolved-instance" ,
160+ } ) ;
160161 } finally {
161162 if ( prev === undefined ) delete process . env [ name ] ;
162163 else process . env [ name ] = prev ;
Original file line number Diff line number Diff line change @@ -488,7 +488,10 @@ export function getOpts(referenceOrOpts: string | ReferenceOptions) {
488488 opts = { } ;
489489 } else {
490490 path = normalizePath ( referenceOrOpts . ref ) ;
491- instance = referenceOrOpts . instance instanceof Expression ? referenceOrOpts . instance . value ( ) : ( referenceOrOpts . instance || '*' ) ;
491+ instance =
492+ referenceOrOpts . instance instanceof Expression
493+ ? referenceOrOpts . instance . value ( )
494+ : referenceOrOpts . instance || "*" ;
492495 opts = { ...referenceOrOpts } ;
493496 delete ( opts as any ) . ref ;
494497 delete ( opts as any ) . instance ;
You can’t perform that action at this time.
0 commit comments