Skip to content

Commit 86c4b3d

Browse files
committed
fix path issue in sync test
1 parent aa9f4cc commit 86c4b3d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/core/src/test/shared/sam/sync.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,8 +1231,8 @@ describe('SyncWizard', async () => {
12311231

12321232
assert(parameters)
12331233

1234-
assert.strictEqual(parameters.template.uri.path, templateFile.path)
1235-
assert.strictEqual(parameters.projectRoot.path, projectRoot.path)
1234+
assert.strictEqual(parameters.template.uri.fsPath, templateFile.fsPath)
1235+
assert.strictEqual(parameters.projectRoot.fsPath, projectRoot.fsPath)
12361236
assert.strictEqual(parameters.paramsSource, ParamsSource.Flags)
12371237
assert.strictEqual(parameters.region, 'us-west-2')
12381238
assert.strictEqual(parameters.stackName, 'stack2')
@@ -1281,8 +1281,8 @@ describe('SyncWizard', async () => {
12811281

12821282
assert(parameters)
12831283

1284-
assert.strictEqual(parameters.template.uri.path, templateFile.path)
1285-
assert.strictEqual(parameters.projectRoot.path, projectRoot.path)
1284+
assert.strictEqual(parameters.template.uri.fsPath, templateFile.fsPath)
1285+
assert.strictEqual(parameters.projectRoot.fsPath, projectRoot.fsPath)
12861286
assert.strictEqual(parameters.paramsSource, ParamsSource.SamConfig)
12871287
assert.strictEqual(parameters.deployType, 'infra')
12881288
assert.strictEqual(parameters.region, 'us-west-2')
@@ -1469,8 +1469,8 @@ describe('SyncWizard', async () => {
14691469

14701470
assert(parameters)
14711471

1472-
assert.strictEqual(parameters.template.uri.path, templateFile.path)
1473-
assert.strictEqual(parameters.projectRoot.path, projectRoot.path)
1472+
assert.strictEqual(parameters.template.uri.fsPath, templateFile.fsPath)
1473+
assert.strictEqual(parameters.projectRoot.fsPath, projectRoot.fsPath)
14741474
assert.strictEqual(parameters.paramsSource, ParamsSource.SpecifyAndSave)
14751475
assert.strictEqual(parameters.region, 'us-west-2')
14761476
assert.strictEqual(parameters.stackName, 'stack3')
@@ -1519,8 +1519,8 @@ describe('SyncWizard', async () => {
15191519

15201520
assert(parameters)
15211521

1522-
assert.strictEqual(parameters.template.uri.path, templateFile.path)
1523-
assert.strictEqual(parameters.projectRoot.path, projectRoot.path)
1522+
assert.strictEqual(parameters.template.uri.fsPath, templateFile.fsPath)
1523+
assert.strictEqual(parameters.projectRoot.fsPath, projectRoot.fsPath)
15241524
assert.strictEqual(parameters.paramsSource, ParamsSource.SamConfig)
15251525
assert.strictEqual(parameters.deployType, 'infra')
15261526
assert(!parameters.region)

0 commit comments

Comments
 (0)