Change splice to pop in annotation tests

This line in the annotation tests subtracts an array from a number. This is because `splice(-1, 1)` returns a one-element array, while `pop()` returns only the element itself.
This commit is contained in:
Thomas den Hollander 2018-10-24 13:08:08 +02:00 committed by GitHub
parent f31f4bea4f
commit b157d8b478
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -975,7 +975,7 @@ describe('annotation', function() {
// Remove the last invalid flag for the next iteration. // Remove the last invalid flag for the next iteration.
if (!valid) { if (!valid) {
flags -= invalidFieldFlags.splice(-1, 1); flags -= invalidFieldFlags.pop();
} }
}); });
}); });