summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-05-26 13:34:08 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-05-26 13:34:08 -0700
commitff2272d59adb8a83c3a1a83d53f7a0062b5b21fd (patch)
tree6ddad97e5d1bf2d24bfbc18c2f7f7d11e6e293e7 /js
parentc075e68c6cdddb8d932a6aad315b85aa633e8e0e (diff)
downloadinfinitytier-ff2272d59adb8a83c3a1a83d53f7a0062b5b21fd.tar.gz
infinitytier-ff2272d59adb8a83c3a1a83d53f7a0062b5b21fd.zip
Delete some temporary code.
Diffstat (limited to 'js')
-rw-r--r--js/zt1-api-client/test.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/js/zt1-api-client/test.js b/js/zt1-api-client/test.js
deleted file mode 100644
index 6a5db453..00000000
--- a/js/zt1-api-client/test.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var ZT1ApiClient = require('./index.js').ZT1ApiClient;
-
-var zt1 = new ZT1ApiClient('http://127.0.0.1:9993/','5d6181b71fae2684f9cc64ed');
-
-zt1.status(function(err,status) {
- if (err)
- console.log(err);
- else console.log(status);
-
- zt1.getNetworks(function(err,networks) {
- if (err)
- console.log(err);
- else console.log(networks);
-
- zt1.getPeers(function(err,peers) {
- if (err)
- console.log(err);
- else console.log(peers);
-
- if (status.controller) {
- zt1.saveControllerNetwork({
- "nwid": status.address + 'dead01',
- "name": 'test network',
- "private": true
- },function(err,network) {
- if (err)
- console.log(err);
- else console.log(network);
- });
- }
- });
- });
-});