Skip to content
This repository was archived by the owner on Dec 10, 2020. It is now read-only.

Commit 751cf0d

Browse files
PhilippLghholgerd77
authored andcommitted
chore: improve test
1 parent 9087ced commit 751cf0d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/rpc/admin/nodeInfo.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import { startRPC, createManager, createNode, params, baseRequest } from '../hel
33

44
const method = 'admin_nodeInfo'
55

6+
<<<<<<< HEAD:test/rpc/admin/nodeInfo.ts
67
tape(method, (t) => {
8+
=======
9+
test(method, (t) => {
10+
>>>>>>> chore: improve test:test/rpc/admin/nodeInfo.js
711
const manager = createManager(createNode({ opened: true }))
812
const server = startRPC(manager.getMethods())
913

@@ -13,11 +17,10 @@ tape(method, (t) => {
1317
const msg = 'should return the correct info'
1418
const { result } = res.body
1519
if (result) {
16-
t.pass(msg)
20+
t.pass('admin_nodeInfo returns a value')
1721
} else {
1822
throw new Error(msg)
1923
}
2024
}
2125
baseRequest(t, server, req, 200, expectRes)
2226
})
23-

0 commit comments

Comments
 (0)