This commit is contained in:
建喵 2023-08-31 19:52:55 +08:00
parent e743a53f18
commit 3b79883252
4 changed files with 9 additions and 10 deletions

4
.vscode/launch.json vendored
View File

@ -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": [
"<node_internals>/**"

View File

@ -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",

@ -1 +0,0 @@
Subproject commit 3aab251c77cbd76451676b0cab3283cf345b0043

View File

@ -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);