Skip to content

Commit

Permalink
Fix typo in throwOnMissing description (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashachabin committed Jul 27, 2022
1 parent ce01fd6 commit eb83bb3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -571,7 +571,7 @@ Options:
Default is `false`.
* `dangerousExtend`: Disable security checks for `extend` query.
Default is `false`.
* `throwOnMissing`: throw a error if env is not found.
* `throwOnMissing`: throw an error if env is not found.
Default is `false`.
* `mobileToDesktop`: Use desktop browsers if Can I Use doesn鈥檛 have data
about this mobile version. Can I Use has only data only about
Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -45,7 +45,7 @@ declare namespace browserslist {
*/
ignoreUnknownVersions?: boolean
/**
* Throw a error if env is not found.
* Throw an error if env is not found.
*/
throwOnMissing?: boolean
/**
Expand Down
2 changes: 1 addition & 1 deletion test/main.test.js
Expand Up @@ -83,7 +83,7 @@ test('handles undefined stats and path correctly', () => {
equal(browserslist([], config), [])
})

test('throw a error on wrong path to config', () => {
test('throw an error on wrong path to config', () => {
throws(() => browserslist(null, { config: IE + '2' }), /Can't read/)
})

Expand Down

0 comments on commit eb83bb3

Please sign in to comment.