it('should detect no problems', function () { var config = new Config({high_security: true}); config.ssl = true; config.capture_params = false; config._applyHighSecurity(); config.ssl.should.equal(true); config.capture_params.should.equal(false); });
it('should detect that capture_params is on', function (done) { var config = new Config({'high_security': true}); config.capture_params = true; config.on('capture_params', function(value) { value.should.equal(false); config.capture_params.should.equal(false); done(); }); config._applyHighSecurity(); });
it('should detect that ssl is off', function (done) { var config = new Config({high_security: true}); config.ssl = false; config.on('ssl', function(value) { value.should.equal(true); config.ssl.should.equal(true); done(); }); config._applyHighSecurity(); });