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

Fix typo in throwOnMissing description #713

Merged
merged 1 commit into from Jul 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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’t 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