Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Nov 22, 2024
1 parent 32b8a9d commit 0c064a9
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ jest.mock("../websocket", () => ({
}))

describe("StreamController", () => {
let mockWs: WS
beforeEach(() => {
mockWs = new WS("wss://localhost:8080")
})

afterEach(() => {
WS.clean()
})

test("constructor", () => {
const config = {
hostname: "hostname",
Expand All @@ -36,8 +45,6 @@ describe("StreamController", () => {
const onData = jest.fn()
const onError = jest.fn()

const mockWs = new WS("wss://localhost:8080")

let serverPromise = (async () => {
await mockWs.connected

Expand Down Expand Up @@ -110,8 +117,6 @@ describe("StreamController", () => {
const onData = jest.fn()
const onError = jest.fn()

let mockWs = new WS("wss://localhost:8080")

let serverPromise = (async () => {
await mockWs.connected

Expand Down

0 comments on commit 0c064a9

Please sign in to comment.