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 instance typos in error messages #529

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/List/maybeToList.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const applyTransform = maybe =>
)

const err =
'maybeToList: Argument must be a Maybe instanstace or a Maybe returning function'
'maybeToList: Argument must be a Maybe instance or a Maybe returning function'

/** maybeToList :: Maybe a -> List a */
/** maybeToList :: (a -> Maybe b) -> a -> List b */
Expand Down
4 changes: 2 additions & 2 deletions src/List/maybeToList.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test('maybeToList transform', t => {

t.ok(isFunction(maybeToList), 'is a function')

const err = /maybeToList: Argument must be a Maybe instanstace or a Maybe returning function/
const err = /maybeToList: Argument must be a Maybe instance or a Maybe returning function/
t.throws(f(undefined), err, 'throws if first arg is undefined')
t.throws(f(null), err, 'throws if first arg is null')
t.throws(f(0), err, 'throws if first arg is a falsey number')
Expand Down Expand Up @@ -55,7 +55,7 @@ test('maybeToList with Maybe returning function', t => {

const f = bindFunc(maybeToList(identity))

const err = /maybeToList: Argument must be a Maybe instanstace or a Maybe returning function/
const err = /maybeToList: Argument must be a Maybe instance or a Maybe returning function/
t.throws(f(undefined), err, 'throws if function returns undefined')
t.throws(f(null), err, 'throws if function returns null')
t.throws(f(0), err, 'throws if function returns a falsey number')
Expand Down
2 changes: 1 addition & 1 deletion src/Maybe/maybeToArray.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const applyTransform = maybe =>
maybe.either(() => [], x => [ x ])

const err =
'maybeToArray: Argument must be a Maybe instanstace or a Maybe returning function'
'maybeToArray: Argument must be a Maybe instance or a Maybe returning function'

function maybeToArray(maybe) {
if(isFunction(maybe)) {
Expand Down
4 changes: 2 additions & 2 deletions src/Maybe/maybeToArray.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('maybeToArray transform', t => {

t.ok(isFunction(maybeToArray), 'is a function')

const err = /maybeToArray: Argument must be a Maybe instanstace or a Maybe returning function/
const err = /maybeToArray: Argument must be a Maybe instance or a Maybe returning function/
t.throws(f(undefined), err, 'throws if second arg is undefined')
t.throws(f(null), err, 'throws if second arg is null')
t.throws(f(0), err, 'throws if second arg is a falsey number')
Expand Down Expand Up @@ -54,7 +54,7 @@ test('maybeToArray with Maybe returning function', t => {

const f = bindFunc(maybeToArray(identity))

const err = /maybeToArray: Argument must be a Maybe instanstace or a Maybe returning function/
const err = /maybeToArray: Argument must be a Maybe instance or a Maybe returning function/
t.throws(f(undefined), err, 'throws if function returns undefined')
t.throws(f(null), err, 'throws if function returns null')
t.throws(f(0), err, 'throws if function returns a falsey number')
Expand Down