File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
integration/vscode/ada/test/general Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,12 @@ suite('Extensions Test Suite', function () {
73
73
// Get the workspace root folder
74
74
const folder = vscode . workspace . workspaceFolders [ 0 ] . uri ;
75
75
76
- // Check the object directory when 'for Object_Dir use "obj"' is present
76
+ // Check the object directory when 'for Object_Dir use "obj"' is present
77
77
// in the GPR file
78
78
const originalObjDir : string = await adaExtState . getObjectDir ( ) ;
79
- assert . strictEqual ( originalObjDir , vscode . Uri . joinPath ( folder , 'obj' ) . fsPath ) ;
79
+ const originalObjDirURI = vscode . Uri . file ( originalObjDir ) ;
80
+
81
+ assert . strictEqual ( originalObjDirURI . path , vscode . Uri . joinPath ( folder , 'obj' ) . path ) ;
80
82
81
83
// Remove the line that specifies the object directory in the GPR file
82
84
const fileUri = vscode . Uri . joinPath ( folder , 'prj.gpr' ) ;
@@ -90,7 +92,7 @@ suite('Extensions Test Suite', function () {
90
92
try {
91
93
const objDirValue = await adaExtState . getObjectDir ( ) ;
92
94
const objDirURI = vscode . Uri . file ( objDirValue ) ;
93
- assert . strictEqual ( objDirURI . fsPath , folder . fsPath ) ;
95
+ assert . strictEqual ( objDirURI . path , folder . path ) ;
94
96
} finally {
95
97
// Restore the old GPR file contents
96
98
writeFileSync ( fileUri . fsPath , contentBefore ) ;
You can’t perform that action at this time.
0 commit comments