@@ -18,7 +18,7 @@ suite('ParamHintCompletionProvider', () => {
18
18
let param = "first: str, paramName:" ;
19
19
let actual = await providerResult ( provider , param , "\n\nparamName = 12" ) ;
20
20
assert . notStrictEqual ( actual , null ) ;
21
- assert . strictEqual ( actual ?. items [ 0 ] . label . trim ( ) , PythonType . Int ) ;
21
+ assert . strictEqual ( actual ?. items [ 0 ] . label , ` ${ PythonType . Int } ` ) ;
22
22
} ) ;
23
23
24
24
test ( "provides items for param on new line" , async ( ) => {
@@ -66,7 +66,7 @@ suite('ParamHintCompletionProvider', () => {
66
66
let result = await providerResult ( provider , param ) ;
67
67
68
68
assert . notStrictEqual ( result , null ) ;
69
- const actual : string [ ] | undefined = result ?. items . map ( item => item . label . trim ( ) ) ;
69
+ const actual : string [ ] | undefined = result ?. items . map ( item => item . label . toString ( ) . trim ( ) ) ;
70
70
assert . deepStrictEqual ( actual , expected ) ;
71
71
} ) ;
72
72
@@ -77,7 +77,7 @@ suite('ParamHintCompletionProvider', () => {
77
77
let result = await providerResult ( provider , param , "\n\nparam = Class()" ) ;
78
78
79
79
assert . notStrictEqual ( result , null ) ;
80
- const actual : string [ ] | undefined = result ?. items . map ( item => item . label . trim ( ) ) ;
80
+ const actual : string [ ] | undefined = result ?. items . map ( item => item . label . toString ( ) . trim ( ) ) ;
81
81
assert . deepStrictEqual ( actual , expected ) ;
82
82
} ) ;
83
83
@@ -140,7 +140,7 @@ suite('ParamHintCompletionProvider', () => {
140
140
test ( "does not include * in parameter name" , async ( ) => {
141
141
let param = "*paramName:" ;
142
142
let actual = await providerResult ( provider , param , "\n\nparamName = 12" ) ;
143
- assert . strictEqual ( actual ?. items [ 0 ] . label . trim ( ) , PythonType . Int ) ;
143
+ assert . strictEqual ( actual ?. items [ 0 ] . label , ` ${ PythonType . Int } ` ) ;
144
144
} ) ;
145
145
146
146
} ) ;
0 commit comments