Skip to content

Commit 5594cde

Browse files
committed
style: cleanup
1 parent 0889981 commit 5594cde

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/apitypes/rest/rest.utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ export const resolveApiAudience = (info: unknown): ApiAudience => {
6767
return apiAudience
6868
}
6969

70-
export const dump = (value: unknown, format: typeof FILE_FORMAT_YAML | typeof FILE_FORMAT_JSON): [[string], BlobPropertyBag] => {
70+
type TextBlobConstructorParameters = [[string], BlobPropertyBag]
71+
72+
export const dump = (value: unknown, format: typeof FILE_FORMAT_YAML | typeof FILE_FORMAT_JSON): TextBlobConstructorParameters => {
7173
if (format === FILE_FORMAT_YAML) {
7274
return [[YAML.dump(value)], { type: 'application/yaml' }]
7375
}

test/export-group-with-filename-collision.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ describe('Export operations group with filename collision test', () => {
6666
// await fs.mkdir(EXPORT_RESULTS_PATH)
6767
})
6868

69+
// commented unnecessary writing to fs to speed up testing stage on CI
70+
// uncomment for debugging purposes
71+
//
6972
// afterEach(async () => {
7073
// const { packageVersion, exportFileName } = await editor.createNodeVersionPackage()
7174
// const infoPrefix = editor.config.operationsSpecTransformation

test/export.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ describe('Export test', () => {
9191
// await fs.mkdir(EXPORT_RESULTS_PATH)
9292
})
9393

94+
// commented unnecessary writing to fs to speed up testing stage on CI
95+
// uncomment for debugging purposes
96+
//
9497
// afterEach(async () => {
9598
// const { packageVersion, exportFileName } = await editor.createNodeVersionPackage()
9699
// const infoPrefix = editor.config.operationsSpecTransformation

0 commit comments

Comments
 (0)