From 08b41b860686e0dd6f81c5ce4a914496c4cbd958 Mon Sep 17 00:00:00 2001 From: amed83 Date: Tue, 12 Jun 2018 16:13:26 +0200 Subject: [PATCH] add endpoints to test --- test/connection/test_connection.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/connection/test_connection.js b/test/connection/test_connection.js index 960c11f..48da540 100644 --- a/test/connection/test_connection.js +++ b/test/connection/test_connection.js @@ -7,6 +7,7 @@ import { API_PATH } from '../constants' const conn = new Connection(API_PATH) + test('Payload thrown at incorrect API_PATH', t => { const path = 'http://localhost:9984/api/wrong/' const connection = new Connection(path) @@ -27,8 +28,12 @@ test('Generate API URLS', t => { 'blocksDetail': 'blocks/%(blockHeight)s', 'outputs': 'outputs', 'transactions': 'transactions', + 'transactionsSync': 'transactions?mode=sync', + 'transactionsCommit': 'transactions?mode=commit', 'transactionsDetail': 'transactions/%(transactionId)s', 'assets': 'assets', + 'metadata': 'metadata', + 'votes': 'votes' } Object.keys(endpoints).forEach(endpointName => { const url = conn.getApiUrls(endpointName)