Elchi3 / mdn-doc-tests

:no_entry_sign: UNMAINTAINED :no_entry_sign: This used to check MDN docs against some tests and cleanup tasks while editing, but add-on SDK based add-ons are obsolete. Use https://github.com/mdn/doc-linter-webextension and https://github.com/mdn/doc-linter-rules instead.
Mozilla Public License 2.0
10 stars 8 forks source link

Fix error in unit tests when number of matches exceeds number of expected results #215

Closed SebastianZ closed 7 years ago

SebastianZ commented 7 years ago

There is an NPE in case the number of matches is larger than the number of expected results:

Message: TypeError: expected[i] is undefined

Sebastian

Elchi3 commented 7 years ago

I think this isn't an issue in the WebExtension.