From 0d6f32405ea67897b91364814a050ced6cd2edb5 Mon Sep 17 00:00:00 2001 From: souvik Date: Mon, 25 Sep 2023 12:28:48 +0530 Subject: [PATCH] fix: code smells --- src/lib/asyncapiFile.ts | 2 +- test/lib/adapter.test.ts | 3 +-- test/lib/glee.test.ts | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lib/asyncapiFile.ts b/src/lib/asyncapiFile.ts index e8f5101b8..70d12c3cb 100644 --- a/src/lib/asyncapiFile.ts +++ b/src/lib/asyncapiFile.ts @@ -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 { diff --git a/test/lib/adapter.test.ts b/test/lib/adapter.test.ts index 8942ea4f6..068fec132 100644 --- a/test/lib/adapter.test.ts +++ b/test/lib/adapter.test.ts @@ -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' diff --git a/test/lib/glee.test.ts b/test/lib/glee.test.ts index 052131f42..ad1915529 100644 --- a/test/lib/glee.test.ts +++ b/test/lib/glee.test.ts @@ -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'