@dashevo/dapi-grpc 0.25.8 → 0.25.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,9 @@ describe('PlatformPromiseClient', () => {
15
15
  getIdentity: this.sinon.stub().resolves(response),
16
16
  getDataContract: this.sinon.stub().resolves(response),
17
17
  getDocuments: this.sinon.stub().resolves(response),
18
+ getEpochsInfo: this.sinon.stub().resolves(response),
19
+ getVersionUpgradeVoteStatus: this.sinon.stub().resolves(response),
20
+ getVersionUpgradeState: this.sinon.stub().resolves(response),
18
21
  };
19
22
  });
20
23
 
@@ -84,4 +87,32 @@ describe('PlatformPromiseClient', () => {
84
87
  expect(platformPromiseClient.client.getDocuments).to.be.calledOnceWith(request);
85
88
  });
86
89
  });
90
+
91
+ describe('#getEpochsInfo', () => {
92
+ it('should get epochs info', async () => {
93
+ const result = await platformPromiseClient.getEpochsInfo(request);
94
+
95
+ expect(result).to.equal(response);
96
+ expect(platformPromiseClient.client.getEpochsInfo).to.be.calledOnceWith(request);
97
+ });
98
+ });
99
+
100
+ describe('#getVersionUpgradeVoteStatus', () => {
101
+ it('should get version upgrade vote status', async () => {
102
+ const result = await platformPromiseClient.getVersionUpgradeVoteStatus(request);
103
+
104
+ expect(result).to.equal(response);
105
+ expect(platformPromiseClient.client.getVersionUpgradeVoteStatus)
106
+ .to.be.calledOnceWith(request);
107
+ });
108
+ });
109
+
110
+ describe('#getVersionUpgradeState', () => {
111
+ it('should get version upgrade state', async () => {
112
+ const result = await platformPromiseClient.getVersionUpgradeState(request);
113
+
114
+ expect(result).to.equal(response);
115
+ expect(platformPromiseClient.client.getVersionUpgradeState).to.be.calledOnceWith(request);
116
+ });
117
+ });
87
118
  });