From 95c44ca76708ca3aafac3b3390a225f55dff8f42 Mon Sep 17 00:00:00 2001 From: simojenki Date: Fri, 23 Jul 2021 21:21:47 +1000 Subject: [PATCH] Remove unused bonob_client.ts --- tests/bonob_client.ts | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 tests/bonob_client.ts diff --git a/tests/bonob_client.ts b/tests/bonob_client.ts deleted file mode 100644 index a83cf0d..0000000 --- a/tests/bonob_client.ts +++ /dev/null @@ -1,36 +0,0 @@ -import getPort from "get-port"; -import { createClientAsync } from "soap"; - -import sonos, { bonobService } from "../src/sonos"; -import server from "../src/server"; - -import logger from "../src/logger"; -import { InMemoryMusicService } from "./in_memory_music_service"; - -const WEB_ADDRESS = "http://localhost:1234" - -const bonob = bonobService("bonob-test", 247, WEB_ADDRESS, 'Anonymous'); -const app = server(sonos(false), bonob, WEB_ADDRESS, new InMemoryMusicService()); - -getPort().then((port) => { - logger.debug(`Starting on port ${port}`); - app.listen(port); - - createClientAsync(`${bonob.uri}?wsdl`, { - endpoint: bonob.uri, - }).then((client) => { - client - .getSessionIdAsync( - { username: "bob", password: "foo" } - ) - .then( - ([{ username, sessionId }]: [ - { username: string; sessionId: string } - ]) => { - console.log(`${username} has sessionId=${sessionId}`); - } - ); - - console.log(`done`); - }); -});