var storage = new (require('../lib/basic-storage'))
  , utils = require('connect').utils
  , fs = require('fs')
  , assert = require('assert');

var keys = {utf8: utils.md5('/blah?sd[]=4&t=' + (+new Date)),
            binary: utils.md5('/blah/pix.png?' + (+new Date))}
  , values = {utf8 : new Buffer('àéè', 'utf8'),
              binary: fs.readFileSync('./static/test.jpg')};

module.exports = {};
['binary', 'utf8'].forEach(function (type) {
  module.exports['set & get ' + type] = function () {
    storage.set(keys[type], values[type], function (err) {
      assert.strictEqual(err, null);
      storage.get(keys[type], function (err, content) {
        assert.strictEqual(err, null);
        assert.strictEqual(utils.md5(content), utils.md5(values[type]));         
      });
    });
  };
  module.exports['remove ' + type] = function () {
    storage.remove(keys[type], function (err) {
      assert.strictEqual(err, null);
      storage.get(keys[type], function (err, content) {
        assert.strictEqual(err, null);
        assert.strictEqual(content, false);
      });
    });
  };
});
@@ -774,78 +774,8 @@
     
-  %7D);%0A    %7D);%0A  %7D;%0A  module.exports%5B'remove ' + type%5D = function () %7B%0A
     
@@ -816,32 +816,36 @@
 n (err) %7B%0A      
+    
 assert.strictEqu
@@ -857,32 +857,36 @@
 r, null);%0A      
+   
+ 
 storage.get(keys
@@ -919,32 +919,36 @@
 tent) %7B%0A        
+    
 assert.strictEqu
@@ -962,32 +962,36 @@
  null);%0A        
+  
+  
 assert.strictEqu
@@ -1010,16 +1010,42 @@
 false);%0A
+          %7D);%0A        %7D);%0A
       %7D)

fix BasicStorage.remove() test