Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added queue test

  • Loading branch information...
commit ced41d4efc1e416f1855d4ef45545d46c32177da 1 parent 8269d59
@pkrumins authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 test/queue.js
View
16 test/queue.js
@@ -0,0 +1,16 @@
+var Store = require('supermarket');
+
+exports['get/set'] = function (assert) {
+ var file = '/tmp/' + Math.floor(Math.random() * 1e8) + '.db';
+
+ var db = Store(file);
+
+ db.set('moo', 5, function (sErr) {
+ assert.ok(!sErr);
+ });
+
+ db.get('moo', function (gErr, val, key) {
+ assert.equal(val, 5);
+ assert.equal(key, 'moo');
+ });
+};
Please sign in to comment.
Something went wrong with that request. Please try again.