repo.or.cz
/
hexo.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
refactor: migrate typescript (#5417)
[hexo.git]
/
test
/
scripts
/
renderers
/
json.ts
blob
9971dd49708dc12e09fd0824b693937f798e3351
1
import r from '../../../lib/plugins/renderer/json';
2
3
describe('json', () => {
4
it('normal', () => {
5
const data = {
6
foo: 1,
7
bar: {
8
baz: 2
9
}
10
};
11
12
r({text: JSON.stringify(data)}).should.eql(data);
13
});
14
});