vitorsalgado/nodejs-fx

View on GitHub
index.spec.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict'

const NodeFX = require('./')

describe('Node.js FX', () => {
  it('should correctly initialize of library functions', () => {
    isFunction(
      NodeFX.allOf,
      NodeFX.anyOf,
      NodeFX.check,
      NodeFX.compose,
      NodeFX.curry,
      NodeFX.def,
      NodeFX.flatten,
      NodeFX.maybe,
      NodeFX.not,
      NodeFX.peek,
      NodeFX.pipe,
      NodeFX.valueOr
    )
  })

  const isFunction = (...fns) => fns.forEach(fn => expect(fn).toBeInstanceOf(Function))
})