var expect = require("chai").expect;
var request = require("request");

describe("Twirlip storage test", function() {

	describe("store test", function() {

		var url = "http://localhost:9000/api/store";
		var sha256Expected = "559abfcbfa056c176d09dc89a8bfce3004ae168b020e934d50e419e4fcd98535";
			
		it.only("stores some data", function(done) {
			request.post({
				url: url,
				form: {
				    type: "store",
				    content: "Hello, storage!",
				    basket: "test"
				}
			}, function(error, httpResponse, body) {
				console.log("body", body);
				expect(httpResponse.statusCode).to.equal(200);
				body = JSON.parse(body);
				expect(body.success).to.equal(true);
				expect(body.status).to.equal("OK");
				expect(body.sha256).to.equal(sha256Expected);
				done();
			});
		});
	});
});
@@ -197,16 +197,58 @@
 store%22;%0A
+%09    var testContent = %22Hello, storage!%22;%0A
 %09%09var sh
@@ -335,20 +335,17 @@
 %22;%0A%09
-%09%09
+    
 %0A%09%09it
-.only
 (%22st
@@ -462,33 +462,27 @@
 ontent: 
-%22Hello, storage!%22
+testContent
 ,%0A%09%09%09%09  
@@ -740,16 +740,16 @@
 (%22OK%22);%0A
-
 %09%09%09%09expe
@@ -815,16 +815,501 @@
 ;%0A%09%09%7D);%0A
+%09%09%0A%09%09it(%22retrieves some data%22, function(done) %7B%0A%09%09%09request.post(%7B%0A%09%09%09%09url: url,%0A%09%09%09%09form: %7B%0A%09%09%09%09    type: %22fetch%22,%0A%09%09%09%09    sha256: sha256Expected,%0A%09%09%09%09    basket: %22test%22%0A%09%09%09%09%7D%0A%09%09%09%7D, function(error, httpResponse, body) %7B%0A%09%09%09%09console.log(%22body%22, body);%0A%09%09%09%09expect(httpResponse.statusCode).to.equal(200);%0A%09%09%09%09body = JSON.parse(body);%0A%09%09%09%09expect(body.success).to.equal(true);%0A%09%09%09%09expect(body.status).to.equal(%22OK%22);%0A%09%09%09%09expect(body.content).to.equal(testContent);%0A%09%09%09%09done();%0A%09%09%09%7D);%0A%09%09%7D);%0A
 %09%7D);%0A%7D);

Add test case to retrieve data to storeTest.js