all files / api/toJSON/ galleryContent.js

60% Statements 3/5
0% Branches 0/4
0% Functions 0/1
60% Lines 3/5
1 2 3 4 5 6 7 8 9 10 11               
'use strict';
 
const R = require('ramda');
const createImage = require('./image');
 
module.exports = function (imageDimensions, galleryContent) {
 
    if(R.has('image', galleryContent) && !R.isNil(galleryContent.image)) {
        return createImage(imageDimensions, [{}, galleryContent.image]);
    }
};