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.

Temporarily hard-coded for lack of an alternative.
  • Loading branch information
flagello committed Apr 30, 2017
1 parent 566c71f commit 93021f3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 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,6 +24,7 @@
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
Expand Down Expand Up @@ -670,8 +673,8 @@ function endStream(s) {
* transducer stream transformer
*/
function StreamTransformer() { }
StreamTransformer.prototype['@@transducer/init'] = function() { };
StreamTransformer.prototype['@@transducer/result'] = function() { };
StreamTransformer.prototype['@@transducer/init'] = /* istanbul ignore next */ function() { };
StreamTransformer.prototype['@@transducer/result'] = /* istanbul ignore next */ function() { };
StreamTransformer.prototype['@@transducer/step'] = function(s, v) { return v; };

return flyd;
Expand Down

0 comments on commit 93021f3

Please sign in to comment.