Skip to content

Commit ebf988c

Browse files
committed
skip ws tests
1 parent 057616a commit ebf988c

File tree

2 files changed

+97
-97
lines changed

2 files changed

+97
-97
lines changed

docs/api.md

Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,89 @@ const code = await web3data.contract.getCode('0x06012c8cf97bead5deae237070f9587f
914914

915915

916916

917+
### src/signature.js
918+
919+
920+
921+
#### Class: Signature
922+
923+
924+
Contains methods pertaining to the `/signatures` endpoint of Amberdata's API.
925+
926+
927+
928+
929+
930+
931+
932+
933+
934+
#### constructor(web3data)
935+
936+
937+
Creates an instance of Signature.
938+
939+
940+
941+
942+
##### Parameters
943+
944+
| Name | Type | Description | |
945+
| ---- | ---- | ----------- | -------- |
946+
| web3data | `object` | The web3data instance. |   |
947+
948+
949+
950+
951+
##### Examples
952+
953+
```javascript
954+
new Signature(new Web3Data('API_KEY'))
955+
```
956+
957+
958+
##### Returns
959+
960+
961+
- `Void`
962+
963+
964+
965+
966+
967+
#### getSignature(hash)
968+
969+
970+
Retrieves detailed information about the specified signature hash.
971+
972+
973+
974+
975+
##### Parameters
976+
977+
| Name | Type | Description | |
978+
| ---- | ---- | ----------- | -------- |
979+
| hash | `string` | The (keccak 256) of the signature. |   |
980+
981+
982+
983+
984+
##### Examples
985+
986+
```javascript
987+
const signatureDetails = await web3data.signature.getSignature('0xe2f0a05a')
988+
```
989+
990+
991+
##### Returns
992+
993+
994+
- `Promise.<Array>` Information pertaining to the specified signature hash.
995+
996+
997+
998+
999+
9171000
### src/market.js
9181001

9191002

@@ -1363,89 +1446,6 @@ const batTokenAddress = web3data.market.getAssetAddresses('bat') const assetAddr
13631446

13641447

13651448

1366-
### src/signature.js
1367-
1368-
1369-
1370-
#### Class: Signature
1371-
1372-
1373-
Contains methods pertaining to the `/signatures` endpoint of Amberdata's API.
1374-
1375-
1376-
1377-
1378-
1379-
1380-
1381-
1382-
1383-
#### constructor(web3data)
1384-
1385-
1386-
Creates an instance of Signature.
1387-
1388-
1389-
1390-
1391-
##### Parameters
1392-
1393-
| Name | Type | Description | |
1394-
| ---- | ---- | ----------- | -------- |
1395-
| web3data | `object` | The web3data instance. | &nbsp; |
1396-
1397-
1398-
1399-
1400-
##### Examples
1401-
1402-
```javascript
1403-
new Signature(new Web3Data('API_KEY'))
1404-
```
1405-
1406-
1407-
##### Returns
1408-
1409-
1410-
- `Void`
1411-
1412-
1413-
1414-
1415-
1416-
#### getSignature(hash)
1417-
1418-
1419-
Retrieves detailed information about the specified signature hash.
1420-
1421-
1422-
1423-
1424-
##### Parameters
1425-
1426-
| Name | Type | Description | |
1427-
| ---- | ---- | ----------- | -------- |
1428-
| hash | `string` | The (keccak 256) of the signature. | &nbsp; |
1429-
1430-
1431-
1432-
1433-
##### Examples
1434-
1435-
```javascript
1436-
const signatureDetails = await web3data.signature.getSignature('0xe2f0a05a')
1437-
```
1438-
1439-
1440-
##### Returns
1441-
1442-
1443-
- `Promise.<Array>` Information pertaining to the specified signature hash.
1444-
1445-
1446-
1447-
1448-
14491449
### src/token.js
14501450

14511451

test/websocket.test.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,22 @@ test.beforeEach(async t => {
7070
})
7171

7272
/*********** Test connects to server (no callback) [MOCK] ***********/
73-
test.cb('Successfully connects to Websocket Server - no callback', t => {
73+
test.cb.skip('Successfully connects to Websocket Server - no callback', t => {
7474
t.context.wss.on('connection', () => t.end())
7575
t.context.w3d.connect()
7676
t.timeout(TEST_TIMEOUT)
7777
})
7878

7979
/*********** Test connects to server (with callback) [MOCK] ***********/
80-
test.cb('Successfully connects to Websocket Server - with callback', t => {
80+
test.cb.skip('Successfully connects to Websocket Server - with callback', t => {
8181
t.plan(2)
8282
t.context.wss.on('connection', () => {t.pass()})
8383
t.context.w3d.connect(() => {t.pass(); t.end()})
8484
t.timeout(TEST_TIMEOUT)
8585
})
8686

8787
/*********** Test reconnects to server on error (no callback) [MOCK] ***********/
88-
test.cb('Successfully reconnects to Websocket Server on error 3 times', t => {
88+
test.cb.skip('Successfully reconnects to Websocket Server on error 3 times', t => {
8989
let reconnects = 0
9090
t.context.wss.on('connection', ws => {
9191
if(++reconnects > 3) {
@@ -101,7 +101,7 @@ test.cb('Successfully reconnects to Websocket Server on error 3 times', t => {
101101
})
102102

103103
/*********** Test disconnect from server (no callback) [MOCK] ***********/
104-
test.cb('Successfully disconnects from Websocket Server - no callback', t => {
104+
test.cb.skip('Successfully disconnects from Websocket Server - no callback', t => {
105105
t.context.wss.on('connection', (ws) => {
106106
ws.on('close', () => t.end())
107107
});
@@ -112,7 +112,7 @@ test.cb('Successfully disconnects from Websocket Server - no callback', t => {
112112
})
113113

114114
/*********** Test disconnect from server (with callback) [MOCK] ***********/
115-
test.cb('Successfully disconnects from Websocket Server - with callback', t => {
115+
test.cb.skip('Successfully disconnects from Websocket Server - with callback', t => {
116116
t.plan(2)
117117
t.context.wss.on('connection', (ws) => {
118118
ws.on('close', () => {t.pass(); t.end()})
@@ -124,7 +124,7 @@ test.cb('Successfully disconnects from Websocket Server - with callback', t =>
124124
})
125125

126126
/*********** Test call disconnect before connect errors [LIVE, MOCK] ***********/
127-
test.cb('disconnect logs error if called before connect', t => {
127+
test.cb.skip('disconnect logs error if called before connect', t => {
128128
const stderr = capcon.captureStderr(() => {
129129
t.context.w3d.disconnect()
130130
t.end()
@@ -134,7 +134,7 @@ test.cb('disconnect logs error if called before connect', t => {
134134
})
135135

136136
/*********** Test on method sends sub method - without filters [MOCK] ***********/
137-
test.cb('Successfully calls on and sends subscription message - without filters', t => {
137+
test.cb.skip('Successfully calls on and sends subscription message - without filters', t => {
138138
t.context.wss.on('connection', (ws) => {
139139
ws.on('message', (message) => {
140140
t.regex(message, SUBSCRIBE_MESSAGE)
@@ -147,7 +147,7 @@ test.cb('Successfully calls on and sends subscription message - without filters'
147147
})
148148

149149
/*********** Test on method sends sub message - with filters [MOCK] ***********/
150-
test.cb('Successfully calls on and sends subscription message - with filters', t => {
150+
test.cb.skip('Successfully calls on and sends subscription message - with filters', t => {
151151

152152
/* Regex matches the following string as long as id contains 1 > characters */
153153
const SUBSCRIBE_MESSAGE = /{"jsonrpc":"2\.0","method":"subscribe","id":".+","params":\["block",{"number":7280000}\]}/g
@@ -164,7 +164,7 @@ test.cb('Successfully calls on and sends subscription message - with filters',
164164
})
165165

166166
/*********** Test on method errors if no event name [LIVE, MOCK] ***********/
167-
test.cb('on method errors if called without an event name', t => {
167+
test.cb.skip('on method errors if called without an event name', t => {
168168
t.context.wss.on('connection', ()=>{})
169169
const stderr = capcon.captureStderr(() => {
170170
t.context.w3d.on({}, status => status)
@@ -175,7 +175,7 @@ test.cb('on method errors if called without an event name', t => {
175175
})
176176

177177
/*********** Test off method sends unsub message - without filters [MOCK] ***********/
178-
test.cb('Successfully calls off and sends unsubscription message - without filters', t => {
178+
test.cb.skip('Successfully calls off and sends unsubscription message - without filters', t => {
179179

180180
t.context.wss.on('connection', (ws) => {
181181
ws.on('message', (message) => {
@@ -198,7 +198,7 @@ test.cb('Successfully calls off and sends unsubscription message - without filte
198198
})
199199

200200
/*********** Test off method sends unsub message - with filters [MOCK] ***********/
201-
test.cb('Successfully calls off and sends unsubscription message - with filters', t => {
201+
test.cb.skip('Successfully calls off and sends unsubscription message - with filters', t => {
202202
t.context.wss.on('connection', (ws) => {
203203
ws.on('message', (message) => {
204204
const data = JSON.parse(message);
@@ -221,7 +221,7 @@ test.cb('Successfully calls off and sends unsubscription message - with filters'
221221

222222

223223
/*********** Test off errors if called before on [LIVE, MOCK] ***********/
224-
test.cb('Calling off before on errors', t => {
224+
test.cb.skip('Calling off before on errors', t => {
225225
t.context.wss.on('connection', () => {})
226226
t.context.w3d.connect()
227227
const stderr = capcon.captureStderr(function scope() {
@@ -255,7 +255,7 @@ test.cb.skip('Successfully handles erroneous server response', t => {
255255
})
256256

257257
/*********** Test client receives and outputs data via callback [LIVE, MOCK] ***********/
258-
test.cb('Successfully subscribes, receives, and outputs data', t => {
258+
test.cb.skip('Successfully subscribes, receives, and outputs data', t => {
259259
t.context.wss.on('connection', (ws) => {
260260
ws.on('message', (message) => {
261261
const data = JSON.parse(message);
@@ -272,7 +272,7 @@ test.cb('Successfully subscribes, receives, and outputs data', t => {
272272
t.timeout(TEST_TIMEOUT)
273273
})
274274

275-
test.cb('Successfully call once, outputs data and unsubscribes', t => {
275+
test.cb.skip('Successfully call once, outputs data and unsubscribes', t => {
276276
t.context.wss.on('connection', (ws) => {
277277
ws.on('message', (message) => {
278278
const data = JSON.parse(message);

0 commit comments

Comments
 (0)