Skip to content

Commit 4cd688f

Browse files
author
Brian Faust
committed
test: v2 node
Signed-off-by: Brian Faust <envoyer@pm.me>
1 parent f0bf7e2 commit 4cd688f

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
package org.arkecosystem.client.api.two
2+
3+
import spock.lang.Specification
4+
import org.arkecosystem.client.MockHelper
5+
6+
class NodeTest extends Specification {
7+
def "status"() {
8+
setup:
9+
def connection = MockHelper.connection(2)
10+
when:
11+
def actual = connection.api('node').status()
12+
then:
13+
actual.success == true
14+
}
15+
16+
def "syncing"() {
17+
setup:
18+
def connection = MockHelper.connection(2)
19+
when:
20+
def actual = connection.api('node').syncing()
21+
then:
22+
actual.success == true
23+
}
24+
25+
def "configuration"() {
26+
setup:
27+
def connection = MockHelper.connection(2)
28+
when:
29+
def actual = connection.api('node').configuration()
30+
then:
31+
actual.success == true
32+
}
33+
}

0 commit comments

Comments
 (0)