You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't bother adding an actual test framework (eg jest) because I struggled to think of other tests I wanted to add, but I could add one if we thought it might expand in usage.
The text was updated successfully, but these errors were encountered:
There is a new version of this user-agents list over in opawg/user-agents-v2 that performs automated tests on every push/PR. In addition to basic JSON sanity checking, it also ensures that every example lands on its containing entry (and adds quite a few more examples!)
Any interest in adding more tests to this project?
I hacked together jdelStrother@995af44 that just checks that all the
examples
listed in the json match one of theuser_agents
regexes.(half-a-dozen or so seem to have bad example UAs: https://github.com/jdelStrother/user-agents/actions/runs/3439700273/jobs/5737297616).
I didn't bother adding an actual test framework (eg jest) because I struggled to think of other tests I wanted to add, but I could add one if we thought it might expand in usage.
The text was updated successfully, but these errors were encountered: