text: 'use strict';
  
  const Code = require('code');
  const Lab = require('lab');
  const LabbableServer = require('../server.js');
  
  const lab = exports.lab = Lab.script();
  const describe = lab.describe;
  const it = lab.it;
  const before = lab.before;
  const after = lab.after;
  const expect = Code.expect;
  
  describe('tracking', () => {
  
    let server;
  
    before((done) => {
  
      LabbableServer.ready((err, srv) => {
  
        expect(err).to.not.exist();
  
        if (err) {
          done(err);
        }
  
        server = srv;
  
        done();
      });
    });
  
    after((done) => {
  
      server = null;
      done();
    });
  
    it('initializes.', (done) => {
  
      expect(server).to.exist();
      expect(LabbableServer.isInitialized()).to.equal(true);
      done();
    });
  
    it('does stuff', (done) => {
  
      server.inject({ method: 'GET', url: '/tracking' }, (res) => {
  
        expect(res.payload).to.equal('ok');
        done();
      });
    });
  });
  