mirror of
https://github.com/TECHNOFAB11/ergogen.git
synced 2025-12-12 16:10:04 +01:00
Prevent circular dependencies in $extends
This commit is contained in:
parent
dd6ff93a89
commit
887220abe3
6 changed files with 17 additions and 4 deletions
|
|
@ -61,6 +61,12 @@ describe('Prepare', function() {
|
|||
y: 2,
|
||||
z: 3
|
||||
})
|
||||
// should be able to detect circular dependencies and error out
|
||||
p.inherit.bind(this, {
|
||||
a: {
|
||||
$extends: 'a'
|
||||
}
|
||||
}).should.throw('circular dependency')
|
||||
})
|
||||
|
||||
it('parameterize', function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue