describe('SPUTILS LIB', function () {
  'use strict';

  it('should have a namespace', function () {
    expect(sputils).to.have.ownProperty('lib');
  });

  beforeEach(function () {
  });

  var testObjects = {
    a: {
      b: {
        c: { es: '', n: false, z: 0, e: null, f: function(){} },
        d: [null, 1, {'long prop name': 9}]
      }
    }
  };

  describe('getval()', function () {
    it('Fetch a deep property without crashing on nulls and undefined.', function () {
      var nul = sputils.lib.getval('a.b.c.e', testObjects);
      expect(nul).to.equal(null);

      // should not throw
      expect(sputils.lib.getval('a.nonexistant.c', testObjects)).to.equal(void 0);
    });

    it('should find falsy values', function () {
      var getval = sputils.lib.getval;
      expect(getval('a.b.c.z', testObjects)).to.equal(0);
      expect(getval('a.b.c.n', testObjects)).to.equal(false);
      expect(getval('a.b.c.es', testObjects)).to.equal('');
    });

    it('should use the global object as root if no root is supplied', function () {
      window.p = { q: 1 };

      var res = sputils.lib.getval('p.q');
      expect(res).to.equal(window.p.q);

      var getval = sputils.lib.getval;
      expect(getval('p.q')).to.equal(window.p.q);


      var gv = getval.bind(null, 'p.q');
      expect(gv()).to.equal(window.p.q);
    });

    it('should be dynamic', function () {
      testObjects.getval = sputils.lib.getval;
      expect(testObjects.getval('a.b')).to.equal(testObjects.a.b);
    });

    it('should allow any kind of property name', function () {
      var getval = sputils.lib.getval;
      var res = getval('a.b.d.2.long prop name', testObjects);
      expect(res).to.equal(9);
    });
  });

  describe('tap', function () {
    it('should produce a side effect', function () {
      var tap = sputils.lib.tap;
      var a = 0;
      function inc() {
        a++;
      }

      var identityWithSideEffect = tap(inc);

      var id = {};
      expect(a).to.equal(0);
      expect(identityWithSideEffect(id)).to.equal(id);
      expect(a).to.equal(1);
    });
  });
});

@@ -972,386 +972,8 @@
 );%0A%0A
-    it('should use the global object as root if no root is supplied', function () %7B%0A      window.p = %7B q: 1 %7D;%0A%0A      var res = sputils.lib.getval('p.q');%0A      expect(res).to.equal(window.p.q);%0A%0A      var getval = sputils.lib.getval;%0A      expect(getval('p.q')).to.equal(window.p.q);%0A%0A%0A      var gv = getval.bind(null, 'p.q');%0A      expect(gv()).to.equal(window.p.q);%0A    %7D);%0A%0A
     

Remove bad test