Skip to content

Commit

Permalink
Fix code coverage with ignore statements
Browse files Browse the repository at this point in the history
Ignoring the UMD bundle and curry functions imported from @most/prelude.

Hard-coded, for the time being for lack of an alternative.
  • Loading branch information
flagello committed Apr 30, 2017
1 parent 566c71f commit 90038e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flyd.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
(function (global, factory) {
/* istanbul ignore next */
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define('flyd', factory) :
(global.flyd = factory());
}(this, (function () { 'use strict';

/** @license MIT License (c) copyright 2010-2016 original author or authors */

/* istanbul ignore next */
// Non-mutating array operations

// cons :: a -> [a] -> [a]
Expand All @@ -22,10 +24,12 @@
return curried
}

/* istanbul ignore next */
// curry3 :: ((a, b, c) -> d) -> (a -> b -> c -> d)
function curry3 (f) {
function curried (a, b, c) { // eslint-disable-line complexity
switch (arguments.length) {
/* istanbul ignore next */
case 0: return curried
case 1: return curry2(function (b, c) { return f(a, b, c); })
case 2: return function (c) { return f(a, b, c); }
Expand Down

0 comments on commit 90038e0

Please sign in to comment.