#1529 - Word wrap feature
This commit is contained in:
20
src/file/paragraph/formatting/word-wrap.spec.ts
Normal file
20
src/file/paragraph/formatting/word-wrap.spec.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import { expect } from "chai";
|
||||
|
||||
import { Formatter } from "@export/formatter";
|
||||
|
||||
import { WordWrap } from "./word-wrap";
|
||||
|
||||
describe("WordWrap", () => {
|
||||
it("should create", () => {
|
||||
const wordWrap = new WordWrap();
|
||||
const tree = new Formatter().format(wordWrap);
|
||||
|
||||
expect(tree).to.deep.equal({
|
||||
"w:wordWrap": {
|
||||
_attr: {
|
||||
"w:val": 0,
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user