fix(core): Issue with hiding dependencies
This commit is contained in:
parent
32890819bf
commit
48b366c57e
10 changed files with 165 additions and 167 deletions
|
@ -4,7 +4,6 @@ import { Design, Pattern, Path } from '../src/index.mjs'
|
|||
const expect = chai.expect
|
||||
|
||||
describe('Part', () => {
|
||||
|
||||
it('Shorthand should contain the part itself', () => {
|
||||
let dp
|
||||
const part = {
|
||||
|
@ -12,9 +11,9 @@ describe('Part', () => {
|
|||
draft: ({ part }) => {
|
||||
dp = part
|
||||
return part
|
||||
}
|
||||
},
|
||||
}
|
||||
const design = new Design({ parts: [ part ]})
|
||||
const design = new Design({ parts: [part] })
|
||||
const pattern = new design()
|
||||
pattern.draft()
|
||||
expect(typeof dp).to.equal('object')
|
||||
|
@ -181,7 +180,7 @@ describe('Part', () => {
|
|||
expect(boundary.width).to.equal(124)
|
||||
expect(boundary.height).to.equal(400)
|
||||
})
|
||||
/*
|
||||
/*
|
||||
it('Should stack a part', () => {
|
||||
const part = {
|
||||
name: 'test',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue