mirror of
https://github.com/TECHNOFAB11/ergogen.git
synced 2025-12-11 23:50:05 +01:00
Outsource kicad outline conversion to pcb templates
This commit is contained in:
parent
6079aaf332
commit
de7441d632
6 changed files with 57 additions and 46 deletions
|
|
@ -1,15 +1,15 @@
|
|||
const m = require('makerjs')
|
||||
const pcb_lib = require('../../src/pcbs')
|
||||
const kicad5 = require('../../src/templates/kicad5')
|
||||
const ergogen = require('../../src/ergogen')
|
||||
|
||||
describe('Internals', function() {
|
||||
|
||||
it('makerjs2kicad', function() {
|
||||
it('pcb outline conversion', function() {
|
||||
// warn on unknown path type
|
||||
sinon.stub(m.model, 'walk').callsFake(function(model, config) {
|
||||
config.onPath({pathContext: {type: 'nonexistent'}})
|
||||
})
|
||||
pcb_lib._makerjs2kicad.bind(this).should.throw("Can't convert path type")
|
||||
kicad5.convert_outline.bind(this).should.throw("Can't convert path type")
|
||||
})
|
||||
|
||||
it('injection', function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue