record ID in AbstractNumbering
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { expect } from "chai";
|
||||
import { Numbering } from "../numbering";
|
||||
import { AbstractNumbering } from "../numbering/abstract-numbering";
|
||||
import { Formatter } from '../export/formatter';
|
||||
|
||||
function jsonify(obj: Object) {
|
||||
@ -44,4 +45,11 @@ describe("Numbering", () => {
|
||||
})
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("AbstractNumbering", () => {
|
||||
it("stores its ID at its .id property", () => {
|
||||
const abstractNumbering = new AbstractNumbering(5);
|
||||
expect(abstractNumbering.id).to.equal(5);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user