Minor test catch-up
This commit is contained in:
parent
42a2502dda
commit
66f420d800
2 changed files with 42 additions and 36 deletions
|
@ -12,6 +12,12 @@ describe('Absolem', function() {
|
|||
const actual = points_lib.parse(absolem_config.points)
|
||||
// remove metadata, so that it only checks the points
|
||||
Object.values(actual).map(val => delete val.meta)
|
||||
// only check points in the "main" zones
|
||||
for (const key of Object.keys(actual)) {
|
||||
if (!expected[key]) {
|
||||
delete actual[key]
|
||||
}
|
||||
}
|
||||
actual.should.deep.equal(expected)
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue