Browse Source

help prs

master
Daniel Hübleitner 5 years ago
parent
commit
968885767a
2 changed files with 5 additions and 5 deletions
  1. 1
    1
      test/TestBackend.ts
  2. 4
    4
      test/TestFrontend.ts

+ 1
- 1
test/TestBackend.ts View File

1
 import { Server } from '../src/Backend'
1
 import { Server } from '../src/Backend'
2
 
2
 
3
-const testServer = new Server(20000, [{
3
+new Server(20000, [{
4
     name: "HelloWorldRPCGroup",
4
     name: "HelloWorldRPCGroup",
5
     publicRPCs: () => [],
5
     publicRPCs: () => [],
6
     localRPCs: () => [{
6
     localRPCs: () => [{

+ 4
- 4
test/TestFrontend.ts View File

1
 import { Client } from '../src/Frontend'
1
 import { Client } from '../src/Frontend'
2
 
2
 
3
-const testClient = new Client(20000, 'localhost')
4
-testClient.connect().then(_ => {
5
-    testClient.info().then(console.log)
6
-    testClient["HelloWorldRPCGroup"].echo("x").then(console.log)
3
+const client = new Client(20000, 'localhost')
4
+client.connect().then(_ => {
5
+    client.info().then(console.log)
6
+    client["HelloWorldRPCGroup"].echo("x").then(console.log)
7
 })
7
 })

Loading…
Cancel
Save