From 3b79883252635536b53faa8bbae72a157a977d99 Mon Sep 17 00:00:00 2001 From: JianMiau Date: Thu, 31 Aug 2023 19:52:55 +0800 Subject: [PATCH] [mod] --- .vscode/launch.json | 4 ++-- package.json | 2 +- src/shared/protocols | 1 - test/api/ApiSend.test.ts | 12 ++++++------ 4 files changed, 9 insertions(+), 10 deletions(-) delete mode 160000 src/shared/protocols diff --git a/.vscode/launch.json b/.vscode/launch.json index ed52292..21794a8 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,10 +9,10 @@ "request": "attach", "name": "Attach to Remote", // "address": "jianmiau.tk:9229/87f42d5b-97bf-4d25-a4d7-37306985459a", - "address": "192.168.5.36:9229/87f42d5b-97bf-4d25-a4d7-37306985459a", + "address": "127.0.0.1:9229/87f42d5b-97bf-4d25-a4d7-37306985459a", "port": 9229, "localRoot": "${workspaceFolder}", - "remoteRoot": "D:/Users/JianMiau/Downloads/guesswhoiams/backend", + "remoteRoot": "D:/Project/Test/Test_Web/GuessWhoIAmS", // "remoteRoot": "/volume1/homes/JianMiau/www/line-bot-ts", "skipFiles": [ "/**" diff --git a/package.json b/package.json index 7b2e2b4..c948323 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "private": true, "scripts": { "dev": "tsrpc-cli dev", - "debug": "nodemon --exec \"node --require ts-node/register --inspect=192.168.5.36:9229 src/index.ts\"", + "debug": "nodemon --exec \"node --require ts-node/register --inspect=127.0.0.1:9229 src/index.ts\"", "build": "tsrpc-cli build", "doc": "tsrpc-cli doc", "test": "mocha test/**/*.test.ts", diff --git a/src/shared/protocols b/src/shared/protocols deleted file mode 160000 index 3aab251..0000000 --- a/src/shared/protocols +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3aab251c77cbd76451676b0cab3283cf345b0043 diff --git a/test/api/ApiSend.test.ts b/test/api/ApiSend.test.ts index 9ea076d..7e3210a 100644 --- a/test/api/ApiSend.test.ts +++ b/test/api/ApiSend.test.ts @@ -18,12 +18,12 @@ describe('ApiSend', function () { assert.strictEqual(res.isSucc, true, 'Failed to connect to server, have you executed `npm run dev` already?'); }) - it('AccountLogin', async function () { - let ret = await client.callApi('AccountLogin', { - name: 'Test' - }); - assert.ok(ret.isSucc) - }); + // it('AccountLogin', async function () { + // let ret = await client.callApi('AccountLogin', { + // name: 'Test' + // }); + // assert.ok(ret.isSucc) + // }); it('LobbyList', async function () { let ret = await client.callApi('LobbyList', null);