test: add `global.navigator` for browser tests

The debug module uses `navigator.userAgent` to detect whether the
browser support colors in console logs.