made formatter replace tags
This commit is contained in:
@ -13,7 +13,7 @@ describe('Document', () => {
|
||||
describe('#constructor()', () => {
|
||||
|
||||
it("should create valid JSON", () => {
|
||||
console.log(JSON.stringify(document, null, " "));
|
||||
//console.log(JSON.stringify(document, null, " "));
|
||||
var stringifiedJson = JSON.stringify(document);
|
||||
var newJson;
|
||||
|
||||
|
@ -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" });
|
||||
});
|
||||
});
|
||||
});
|
@ -18,8 +18,6 @@ describe('Paragraph', () => {
|
||||
describe('#constructor()', () => {
|
||||
|
||||
it("should create valid JSON", () => {
|
||||
console.log(JSON.stringify(paragraph, null, " "));
|
||||
|
||||
var stringifiedJson = JSON.stringify(paragraph);
|
||||
var newJson;
|
||||
|
||||
|
Reference in New Issue
Block a user