text: const should = require('chai').should(); // eslint-disable-line
  
  describe('Titlecase', () => {
    const Hexo = require('../../../lib/hexo');
    const hexo = new Hexo();
    const titlecase = require('../../../lib/plugins/filter/before_post_render/titlecase').bind(hexo);
  
    it('disabled', () => {
      const title = 'Today is a good day';
      const data = {title};
      hexo.config.titlecase = false;
  
      titlecase(data);
      data.title.should.eql(title);
    });
  
    it('enabled', () => {
      const title = 'Today is a good day';
      const data = {title};
      hexo.config.titlecase = true;
  
      titlecase(data);
      data.title.should.eql('Today Is a Good Day');
    });
  });
  