Merge branch 'develop' into octoplushie
This commit is contained in:
commit
3ac64f9458
9 changed files with 252 additions and 59 deletions
|
@ -712,3 +712,21 @@ it("Should handle a list snapped option", () => {
|
|||
});
|
||||
|
||||
|
||||
it("Should retrieve the cutList", () => {
|
||||
const Test = new freesewing.Design({
|
||||
name: "test",
|
||||
parts: ['front'],
|
||||
})
|
||||
Test.prototype.draftFront = function(part) {
|
||||
part.addCut(4, 'lining', true)
|
||||
|
||||
return part
|
||||
};
|
||||
const pattern = new Test()
|
||||
expect(JSON.stringify(pattern.getCutList())).to.equal(JSON.stringify({}))
|
||||
pattern.draft()
|
||||
console.log(pattern.parts.front.cut)
|
||||
const list = `{"front":{"grain":90,"materials":{"lining":{"cut":4,"identical":true}}}}`
|
||||
expect(JSON.stringify(pattern.getCutList())).to.equal(list)
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue