text: var app = require('../../app');
  var request = require('supertest')(app);
  
  describe('test/controllers/search.test.js', function () {
    it('should redirect to google search', function (done) {
      request.get('/search').query({q: 'node 中文'})
        .expect(302)
        .end(function (err, res) {
          res.headers['location'].should.equal('https://www.baidu.com/s?wd=site:bbs.zuqiuxunlian.com%20node%20%E4%B8%AD%E6%96%87');
          done(err);
        });
    });
  });
  