Add unit test for assertions

This commit is contained in:
Bán Dénes 2021-05-22 19:06:57 +02:00
parent c7b86c7556
commit 9baae154cb
7 changed files with 94 additions and 17 deletions

View file

@ -11,7 +11,7 @@ const anchor = module.exports = (raw, name, points={}, check_unexpected=true, de
}
return current
}
if (check_unexpected) a.detect_unexpected(raw, name, ['ref', 'orient', 'shift', 'rotate', 'affect'])
if (check_unexpected) a.unexpected(raw, name, ['ref', 'orient', 'shift', 'rotate', 'affect'])
let point = default_point.clone()
if (raw.ref !== undefined) {
if (a.type(raw.ref)() == 'array') {