made formatter replace tags

This commit is contained in:
Dolan Miu
2016-03-31 04:33:06 +01:00
parent 4f4653200e
commit 167de85cee
4 changed files with 33 additions and 12 deletions

View File

@ -3,7 +3,7 @@
import {Formatter} from "../export/Formatter";
describe('Formatter', () => {
describe.only('Formatter', () => {
var formatter: Formatter;
beforeEach(() => {
@ -12,8 +12,11 @@ describe('Formatter', () => {
describe('#format()', () => {
it("should work", () => {
var newJson = formatter.format('{"p":["stuff"]}');
console.log(newJson);
var newJson = formatter.format({ "p": [{ "t": "test" }] });
});
it("should should change 'p' tag into 'w:p' tag", () => {
var newJson = formatter.format({ "p": "test" });
});
});
});