Something went wrong. Try again.
:rocket: A fully-featured and deeply tested Cloudinary Ghost storage adapter ghost.org/integrations/cloudinary
Something went wrong. Try again.
1234567891011121314151617181920212223'use strict';
const chai = require('chai'), expect = chai.expect, path = require('path'), CloudinaryAdapter = require(path.join(__dirname, '../../'));
let cloudinaryAdapter = null;
describe('serve', function () { it('should return a function', function (done) { let called = false; cloudinaryAdapter = new CloudinaryAdapter(); const handler = cloudinaryAdapter.serve(); expect(handler).to.be.a('function'); handler(null, null, function () { called = true; }); expect(called).to.equal(true); done(); });});