From fa64d8e1469a1b5cba2649cd51f532efa06ea3db Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 31 Mar 2016 05:30:37 +0100 Subject: [PATCH] made test working --- ts/tests/formatterTest.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts/tests/formatterTest.ts b/ts/tests/formatterTest.ts index 6f8e199c83..46a6e4ec42 100644 --- a/ts/tests/formatterTest.ts +++ b/ts/tests/formatterTest.ts @@ -1,8 +1,10 @@ /// /// +/// import {Formatter} from "../export/Formatter"; import * as docx from "../docx"; +import {assert} from "chai"; function jsonify(obj: Object) { var stringifiedJson = JSON.stringify(obj); @@ -26,6 +28,7 @@ describe.only('Formatter', () => { it("should should change 'p' tag into 'w:p' tag", () => { var newJson = formatter.format({ "p": "test" }); + assert.isDefined(newJson["w:p"]); }); }); }); \ No newline at end of file