made test working

This commit is contained in:
Dolan Miu
2016-03-31 05:30:37 +01:00
parent 30ed93b2e9
commit fa64d8e146

View File

@ -1,8 +1,10 @@
/// <reference path="../typings/mocha/mocha.d.ts" /> /// <reference path="../typings/mocha/mocha.d.ts" />
/// <reference path="../typings/lodash/lodash.d.ts" /> /// <reference path="../typings/lodash/lodash.d.ts" />
/// <reference path="../typings/chai/chai.d.ts" />
import {Formatter} from "../export/Formatter"; import {Formatter} from "../export/Formatter";
import * as docx from "../docx"; import * as docx from "../docx";
import {assert} from "chai";
function jsonify(obj: Object) { function jsonify(obj: Object) {
var stringifiedJson = JSON.stringify(obj); var stringifiedJson = JSON.stringify(obj);
@ -26,6 +28,7 @@ describe.only('Formatter', () => {
it("should should change 'p' tag into 'w:p' tag", () => { it("should should change 'p' tag into 'w:p' tag", () => {
var newJson = formatter.format({ "p": "test" }); var newJson = formatter.format({ "p": "test" });
assert.isDefined(newJson["w:p"]);
}); });
}); });
}); });