Skip to content

Commit

Permalink
Improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jan 21, 2020
1 parent b851808 commit fe7b967
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/browser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ it('selects versions of browser', () => {
expect(browserslist('last 2 ie versions')).toEqual(['ie 11', 'ie 10'])
})

it('does not include unreleased versions', () => {
browserslist.data = originData
expect(browserslist('last 2 safari versions')).not.toContain('safari TP')
})

it('supports pluralization', () => {
expect(browserslist('last 1 ie version')).toEqual(['ie 11'])
})
Expand Down

0 comments on commit fe7b967

Please sign in to comment.