From 93021f39989131b3763932e761138262ab92c4ba Mon Sep 17 00:00:00 2001 From: William Esz Date: Sun, 30 Apr 2017 20:15:58 +0200 Subject: [PATCH] Fix code coverage with ignore statements Ignoring the UMD bundle and curry functions imported from @most/prelude. Temporarily hard-coded for lack of an alternative. --- flyd.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flyd.js b/flyd.js index 903dbff..ba1536b 100644 --- a/flyd.js +++ b/flyd.js @@ -1,4 +1,5 @@ (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()); @@ -6,6 +7,7 @@ /** @license MIT License (c) copyright 2010-2016 original author or authors */ + /* istanbul ignore next */ // Non-mutating array operations // cons :: a -> [a] -> [a] @@ -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 @@ -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;