refactor: migrate typescript (#5417)
[hexo.git] / test / scripts / renderers / json.ts
blob9971dd49708dc12e09fd0824b693937f798e3351
1 import r from '../../../lib/plugins/renderer/json';
3 describe('json', () => {
4   it('normal', () => {
5     const data = {
6       foo: 1,
7       bar: {
8         baz: 2
9       }
10     };
12     r({text: JSON.stringify(data)}).should.eql(data);
13   });
14 });