mirror of
https://github.com/lancedikson/bowser
synced 2026-03-02 03:40:27 +00:00
Make testable and add tests.
This commit is contained in:
18
README.md
18
README.md
@@ -60,4 +60,20 @@ else if (bowser.c) {
|
||||
}
|
||||
else {
|
||||
// unsupported (bowser.x)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Building
|
||||
--------
|
||||
|
||||
Simply `$ npm install` and `$ make` inside the bowser folder.
|
||||
|
||||
|
||||
Testing
|
||||
-------
|
||||
We started a list `src/useragents.js` with example user agents and their expected bowser object.
|
||||
|
||||
Whenever you add support for new browsers or notice a bug / mismatch, please update the list and
|
||||
check if all tests are still passing.
|
||||
|
||||
To run the test call `$ make test` and hope for green light ;)
|
||||
|
||||
Reference in New Issue
Block a user