Skip to content

Commit 552afa6

Browse files
committed
fix linting problems
1 parent 955cd69 commit 552afa6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/core/src/test/eventSchemas/commands/downloadSchemaItemCode.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ describe('SchemaCodeDownload', function () {
384384

385385
// should extract the zip file with provided fileContent
386386
const expectedFilePath = path.join(request.destinationDirectory.fsPath, fileName)
387-
const response = await fs.readFileAsString(expectedFilePath)
387+
const response = await fs.readFileText(expectedFilePath)
388388
assert.strictEqual(response, fileContent, `${expectedFilePath} :file content do not match`)
389389
})
390390

@@ -421,7 +421,7 @@ describe('SchemaCodeDownload', function () {
421421
)
422422

423423
const expectedFilePath = path.join(request.destinationDirectory.fsPath, fileName)
424-
const response = await fs.readFileAsString(expectedFilePath)
424+
const response = await fs.readFileText(expectedFilePath)
425425
assert.strictEqual(response, fileContent, 'Extracted file content do not match with expected')
426426
})
427427

@@ -551,8 +551,8 @@ describe('CodeExtractor', function () {
551551
assert.ok(await fs.exists(file2Path), `${file2Path} should exist`)
552552

553553
//confirm file contents
554-
const file1Content = await fs.readFileAsString(file1Path)
555-
const file2Content = await fs.readFileAsString(file2Path)
554+
const file1Content = await fs.readFileText(file1Path)
555+
const file2Content = await fs.readFileText(file2Path)
556556

557557
assert.strictEqual(file1Content, 'First file content', `${file1Path} : file content do not match`)
558558
assert.strictEqual(file2Content, 'Second file content', `${file2Path} : file content do not match`)
@@ -578,7 +578,7 @@ describe('CodeExtractor', function () {
578578
await codeExtractor.extractAndPlace(buffer, request)
579579

580580
const file1Path = path.join(destinationDirectory, fileName1)
581-
const file1Content = await fs.readFileAsString(file1Path)
581+
const file1Content = await fs.readFileText(file1Path)
582582

583583
assert.strictEqual(file1Content, expectedFileContent, `${file1Path} :File content should not be overriden`)
584584
})
@@ -604,7 +604,7 @@ describe('CodeExtractor', function () {
604604
await codeExtractor.extractAndPlace(buffer, request)
605605

606606
const file1Path = path.join(destinationDirectory, fileName1)
607-
const file1Content = await fs.readFileAsString(file1Path)
607+
const file1Content = await fs.readFileText(file1Path)
608608

609609
assert.strictEqual(file1Content, overridenFileContent, `${file1Path} :File content should be overriden`)
610610
})
@@ -634,7 +634,7 @@ describe('CodeExtractor', function () {
634634
)
635635

636636
const file1Path = path.join(destinationDirectory, fileName1)
637-
const file1Content = await fs.readFileAsString(file1Path)
637+
const file1Content = await fs.readFileText(file1Path)
638638

639639
assert.strictEqual(file1Content, expectedFileContent, `${file1Path} :File content should not be overriden`)
640640
})

0 commit comments

Comments
 (0)