text: var expect = require('expect');
  var db = require('./db');
  
  describe('hmset', function () {
    it('accepts a list of fields/values as arguments', function () {
      db.hmset('my-key', 'a', 'one', 'b', 'two');
  
      return db.hgetall('my-key').then(function (hash) {
        expect(hash).toEqual({ a: 'one', b: 'two' });
      });
    });
  
    it('accepts a hash as the second argument', function () {
      db.hmset('my-key', { a: 'one', b: 'two' });
  
      return db.hgetall('my-key').then(function (hash) {
        expect(hash).toEqual({ a: 'one', b: 'two' });
      });
    });
  });
  