Fix lint and style errors
This commit is contained in:
@ -8,9 +8,9 @@ export interface IColumnAttributes {
|
|||||||
|
|
||||||
export class ColumnAttributes extends XmlAttributeComponent<IColumnAttributes> {
|
export class ColumnAttributes extends XmlAttributeComponent<IColumnAttributes> {
|
||||||
protected readonly xmlKeys = {
|
protected readonly xmlKeys = {
|
||||||
width: 'w:w',
|
width: "w:w",
|
||||||
space: 'w:space',
|
space: "w:space",
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Column extends XmlComponent {
|
export class Column extends XmlComponent {
|
||||||
@ -20,7 +20,7 @@ export class Column extends XmlComponent {
|
|||||||
new ColumnAttributes({
|
new ColumnAttributes({
|
||||||
width: twipsMeasureValue(width),
|
width: twipsMeasureValue(width),
|
||||||
space: space === undefined ? undefined : twipsMeasureValue(space),
|
space: space === undefined ? undefined : twipsMeasureValue(space),
|
||||||
})
|
}),
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import { expect } from "chai";
|
import { expect } from "chai";
|
||||||
import { Columns } from ".";
|
|
||||||
import { Formatter } from "export/formatter";
|
import { Formatter } from "export/formatter";
|
||||||
import { Column } from "./column";
|
|
||||||
|
import { Column, Columns } from ".";
|
||||||
|
|
||||||
describe("Columns", () => {
|
describe("Columns", () => {
|
||||||
describe("#constructor()", () => {
|
describe("#constructor()", () => {
|
||||||
|
Reference in New Issue
Block a user