Ghost/core/test/utils/channelUtils.js

15 lines
479 B
JavaScript
Raw Normal View History

var defaultChannels = require('../../server/controllers/channels/config.channels.json');
// This is a function to get a fake or test channel
// It's currently based on the default config in Ghost itself
module.exports.getTestChannel = function getTestChannel(channelName) {
var channel = defaultChannels[channelName];
channel.name = channelName;
return channel;
};
module.exports.getDefaultChannels = function getDefaultChannels() {
return defaultChannels;
};