var assert = require('chai').assert,
  memoryDB = require('../lib/backends/memory-db');

describe('memoryDB', function () {
  var db;

  beforeEach(function () {
    db = memoryDB();
  });

  describe('set', function () {
    it('should properly set something to memoryDB', function () {
      db.set('somekey', 'somevalue', function (err) {
        db.get('somekey', function (err, data) {
          assert.equal(data, 'somevalue');
        });
      })
    });
  });

  describe('hmset', function () {
    it('should properly hmset something to memoryDB', function () {
      db.hmset('somekey', {foo: 'somevalue'}, function (err) {
        db.get('somekey', function (err, data) {
          assert.deepEqual(data, {foo: 'somevalue'});
        });
      })
    });

    it('should properly hmset reset something to memoryDB', function () {
      db.hmset('somekey', {foo: '1'}, function (err) {
        db.hmset('somekey', {foo: '2'}, function (err) {
          db.get('somekey', function (err, data) {
            assert.deepEqual(data, {foo: '2'});
          });
        });
      })
    });
  });
});

@@ -1,17 +1,17 @@
 var 
-asser
+expec
 t = requ
@@ -22,21 +22,21 @@
 'chai').
-asser
+expec
 t,%0A  mem
@@ -398,27 +398,30 @@
     
-assert
+expect(data).to
 .equal(
-data, 
 'som
@@ -690,39 +690,43 @@
         
-assert
+expect(data).to
 .deep
-E
+.e
 qual(
-data, 
 %7Bfoo: 's
@@ -1021,31 +1021,35 @@
     
-assert
+expect(data).to
 .deep
-E
+.e
 qual(
-data, 
 %7Bfoo

Rewrite memoryDB tests to use chai.expect