mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
test: write tests for sugar functions (#1631)
* test: write tests for sugar functions
This commit is contained in:
committed by
Mayukha Vadari
parent
98c9b9bc14
commit
f2216446e5
@@ -66,7 +66,7 @@ export default function createMockRippled(port: number): MockedWebSocketServer {
|
||||
throw new Error(`Request has no id: ${requestJSON}`)
|
||||
}
|
||||
if (request.command == null) {
|
||||
throw new Error(`Request has no id: ${requestJSON}`)
|
||||
throw new Error(`Request has no command: ${requestJSON}`)
|
||||
}
|
||||
if (request.command === 'ping') {
|
||||
ping(conn, request)
|
||||
|
||||
Reference in New Issue
Block a user