Files
docx-js/ts/tests/docxTest.ts

26 lines
761 B
TypeScript
Raw Normal View History

2016-03-27 03:09:50 +01:00
/// <reference path="../typings/mocha/mocha.d.ts" />
2016-03-28 00:53:24 +01:00
import * as docx from "../docx";
2016-03-27 03:09:50 +01:00
describe('Calculator', () => {
2016-03-28 00:53:24 +01:00
var document : docx.Document;
2016-03-27 03:09:50 +01:00
/*beforeEach(function () {
subject = new Calculator();
});
describe('#add', () => {
it('should add two numbers together', () => {
var result : number = subject.add(2, 3);
if (result !== 5) {
throw new Error('Expected 2 + 3 = 5 but was ' + result);
}
});
});*/
describe('#test', () => {
2016-03-28 00:53:24 +01:00
var document = new docx.Document();
var paragraph = new docx.Paragraph();
//var body = new docx.Body();
console.log(JSON.stringify(paragraph));
console.log(document.test());
2016-03-27 03:09:50 +01:00
});
});