Skip to content

Commit

Permalink
fix: code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
Souvikns committed Sep 25, 2023
1 parent 523b527 commit 0d6f324
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/asyncapiFile.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { readFile } from 'fs/promises'
import asyncapi, { AsyncAPIDocumentInterface as AsyncAPIDocument, Parser, toAsyncAPIDocument} from '@asyncapi/parser'
import { AsyncAPIDocumentInterface as AsyncAPIDocument, Parser, toAsyncAPIDocument} from '@asyncapi/parser'
import { getConfigs } from './configs.js'

export async function getParsedAsyncAPI(): Promise<AsyncAPIDocument> {
Expand Down
3 changes: 1 addition & 2 deletions test/lib/adapter.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'jest-extended'
import {AsyncAPIDocumentV2 as AsyncAPIDocument} from '@asyncapi/parser'
import { ServerInterface as Server } from '@asyncapi/parser'
import {AsyncAPIDocumentV2 as AsyncAPIDocument, ServerInterface as Server} from '@asyncapi/parser'
import GleeConnection from '../../src/lib/connection.js'
import Glee from '../../src/lib/glee.js'
import GleeMessage from '../../src/lib/message.js'
Expand Down
3 changes: 1 addition & 2 deletions test/lib/glee.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'jest-extended'
import {AsyncAPIDocumentV2 as AsyncAPIDocument} from '@asyncapi/parser'
import {AsyncAPIDocumentV2 as AsyncAPIDocument, ServerInterface as Server} from '@asyncapi/parser'
import {jest} from '@jest/globals'
import {ServerInterface as Server} from '@asyncapi/parser'
import GleeConnection from '../../src/lib/connection.js'
import Glee from '../../src/lib/glee.js'
import GleeMessage from '../../src/lib/message.js'
Expand Down

0 comments on commit 0d6f324

Please sign in to comment.