"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.terms = terms => {
    if (terms == null)
        return;
    if (!terms.length) {
        throw new Error('terms and conditions cannot be empty');
    }
    const marked = require('marked');
    try {
        marked(terms);
    }
    catch (err) {
        throw new Error(`expected terms and conditions to be valid markdown: ${err.message}`);
    }
};
//# sourceMappingURL=validate.js.map