1
0
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:
Hannes Diercks
2013-12-13 13:17:10 +01:00
parent 88589615f4
commit 89cffac4a5
6 changed files with 554 additions and 69 deletions

View File

@@ -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 ;)