aboutsummaryrefslogtreecommitdiffstats
path: root/db.methods.js
diff options
context:
space:
mode:
Diffstat (limited to 'db.methods.js')
-rw-r--r--db.methods.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/db.methods.js b/db.methods.js
new file mode 100644
index 00000000..b4abfc4d
--- /dev/null
+++ b/db.methods.js
@@ -0,0 +1,18 @@
+require('es6-promise').polyfill();
+
+var assert = require('assert');
+var web3 = require('../index.js');
+var u = require('./utils.js');
+web3.setProvider(new web3.providers.WebSocketProvider('http://localhost:8080')); // TODO: create some mock provider
+
+describe('web3', function() {
+ describe('db', function() {
+ it('should have all methods implemented', function() {
+ u.methodExists(web3.db, 'put');
+ u.methodExists(web3.db, 'get');
+ u.methodExists(web3.db, 'putString');
+ u.methodExists(web3.db, 'getString');
+ });
+ });
+});
+