Skip to content

Commit f0bf7e2

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

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package org.arkecosystem.client.api.two
2+
3+
import spock.lang.Specification
4+
import org.arkecosystem.client.MockHelper
5+
6+
class PeersTest extends Specification {
7+
def "all"() {
8+
setup:
9+
def connection = MockHelper.connection(2)
10+
when:
11+
def actual = connection.api('peers').all()
12+
then:
13+
actual.success == true
14+
}
15+
16+
def "show"() {
17+
setup:
18+
def connection = MockHelper.connection(2)
19+
when:
20+
def actual = connection.api('peers').show("dummy")
21+
then:
22+
actual.success == true
23+
}
24+
}

0 commit comments

Comments
 (0)