var Code = require('code');   // assertion library
var Lab = require('lab');
var lab = exports.lab = Lab.script();

var server = require("../examples/hellovalidate"); // require ../index.js

lab.experiment("Joi Validation Test", function() {
  // tests
  lab.test("GET /jo should fail due to insufficient name length", function(done) {
    var options = {
      method: "GET",
      url: "/j"
    };
    server.inject(options, function(response) {
      Code.expect(response.statusCode).to.equal(400);  //  Expect http response status code to be 200 ("Ok")
      // Code.expect(response.result).to.have.length(10); // Expect result to be "Hello Timmy!" (12 chars long)
      // console.log(response.result);
      server.stop();
      done();                                         // done() callback is required to end the test.
    });
	});

  lab.test("GET /jo should pass", function(done) {
    var options = {
      method: "GET",
      url: "/jo"
    };
    server.inject(options, function(response) {
      Code.expect(response.statusCode).to.equal(200);  //  Expect http response status code to be 200 ("Ok")
      // Code.expect(response.result).to.have.length(10); // Expect result to be "Hello Timmy!" (12 chars long)
      // console.log(response.result);
      server.stop();
      done();                                         // done() callback is required to end the test.
    });
  });
});

@@ -256,33 +256,32 @@
 lab.test(%22GET /j
-o
  should fail due
@@ -320,32 +320,32 @@
 unction(done) %7B%0A
+
     var options 
@@ -542,169 +542,27 @@
  be 
-2
+4
 00 (%22
-Ok%22)%0A      // Code.expect(response.result).to.have.length(10); // Expect result to be %22Hello Timmy!%22 (12 chars long)%0A      // console.log(response.result);
+Bad Request%22)
 %0A   
@@ -851,32 +851,68 @@
 ion(response) %7B%0A
+      console.log(response.result);%0A
       Code.expec
@@ -1009,19 +1009,16 @@
 %22)%0A     
- //
  Code.ex
@@ -1058,10 +1058,9 @@
 gth(
-10
+7
 ); /
@@ -1087,24 +1087,18 @@
 e %22H
-ello Timmy
+ai jo
 !%22 (
-12
+7
  cha
@@ -1111,19 +1111,16 @@
 g)%0A     
- //
  console

fix errors(?) in tests