@@ -98,7 +98,7 @@ test("activateExtension fails for missing main.js file", async () => {
98
98
expect ( extension . status ) . toEqual ( "rejected" ) ;
99
99
expect ( Array . isArray ( extension . reasons ) ) . toBe ( true ) ;
100
100
expect ( extension . reasons ) . toHaveLength ( 1 ) ;
101
- expect ( ` ${ extension . reasons ! [ 0 ] } ` ) . toMatch ( "Failed to load url main.js" ) ;
101
+ expect ( extension . reasons ! [ 0 ] + "" ) . toMatch ( "Failed to load url main.js" ) ;
102
102
disposable . dispose ( ) ;
103
103
} ) ;
104
104
@@ -112,7 +112,7 @@ test("activateExtension fails on activation", async () => {
112
112
expect ( Array . isArray ( extension . reasons ) ) . toBe ( true ) ;
113
113
expect ( extension . reasons ) . toHaveLength ( 1 ) ;
114
114
expect ( extension . reasons ! [ 0 ] ) . toBeInstanceOf ( Error ) ;
115
- expect ( ` ${ extension . reasons ! [ 0 ] } ` ) . toMatch (
115
+ expect ( extension . reasons ! [ 0 ] + "" ) . toMatch (
116
116
"Failed by intention: pippo.will-fail-on-activation"
117
117
) ;
118
118
disposable . dispose ( ) ;
@@ -133,10 +133,10 @@ test("activateExtension fails for failing dependency", async () => {
133
133
expect ( extension . status ) . toEqual ( "rejected" ) ;
134
134
expect ( Array . isArray ( extension . reasons ) ) . toBe ( true ) ;
135
135
expect ( extension . reasons ) . toHaveLength ( 2 ) ;
136
- expect ( ` ${ extension . reasons ! [ 0 ] } ` ) . toMatch (
136
+ expect ( extension . reasons ! [ 0 ] + "" ) . toMatch (
137
137
"Extension 'pippo.requires-failing' rejected because dependencies could not be resolved."
138
138
) ;
139
- expect ( ` ${ extension . reasons ! [ 1 ] } ` ) . toMatch (
139
+ expect ( extension . reasons ! [ 1 ] + "" ) . toMatch (
140
140
"Failed by intention: pippo.will-fail-on-activation"
141
141
) ;
142
142
disposable1 . dispose ( ) ;
0 commit comments