Add unit test for assertions
This commit is contained in:
parent
c7b86c7556
commit
9baae154cb
7 changed files with 94 additions and 17 deletions
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue