Minor test catch-up

This commit is contained in:
Bán Dénes 2020-07-21 19:45:01 +02:00
parent 42a2502dda
commit 66f420d800
2 changed files with 42 additions and 36 deletions

View file

@ -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)
})
})