Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(isBrowser): add tests #826

Merged
merged 1 commit into from
Nov 10, 2016
Merged

test(isBrowser): add tests #826

merged 1 commit into from
Nov 10, 2016

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Nov 10, 2016

Per #824, this PR adds some tests for the isBrowser util. It also fixes the typeof check which forgot to account for null objects.

Tests are run in karma, so we can assert the positive case. We're utilizing the imports loader to load the module as if both the document and window are each either undefined and null to assert the negative case.

@codecov-io
Copy link

Current coverage is 100% (diff: 100%)

Merging #826 into master will not change coverage

@@           master   #826   diff @@
====================================
  Files         136    136          
  Lines        2217   2217          
  Methods         0      0          
  Messages        0      0          
  Branches        0      0          
====================================
  Hits         2217   2217          
  Misses          0      0          
  Partials        0      0          

Powered by Codecov. Last update c751fb3...686a0a2

@levithomason levithomason merged commit a7f22b1 into master Nov 10, 2016
@levithomason levithomason deleted the test/is-browser branch November 10, 2016 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants