Fixed Level denormalize test.
This commit is contained in:
parent
ba1e7005ca
commit
03e39c3f5c
1 changed files with 8 additions and 6 deletions
|
@ -17,6 +17,7 @@ describe 'Level', ->
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
type: 'hero'
|
||||||
})
|
})
|
||||||
|
|
||||||
thangType = new ThangType({
|
thangType = new ThangType({
|
||||||
|
@ -49,4 +50,5 @@ describe 'Level', ->
|
||||||
|
|
||||||
it 'adds components from the thang type that do not exist in the level thang', ->
|
it 'adds components from the thang type that do not exist in the level thang', ->
|
||||||
dComp = _.find tharinThangComponents, {original:'d'}
|
dComp = _.find tharinThangComponents, {original:'d'}
|
||||||
expect(_.isEqual(dComp.config, {i: 1})).toBeTruthy()
|
expect(dComp).toBeTruthy()
|
||||||
|
expect(_.isEqual(dComp?.config, {i: 1})).toBeTruthy()
|
||||||
|
|
Reference in a new issue