UNPKG

clabot-fix

Version:

A bot to take the pain out of Contributor License Agreements

34 lines (26 loc) 955 B
(function() { 'use strict'; var alreadySigned, comment, fs, notYetSigned, path; fs = require('fs'); path = require('path'); comment = require('../src/lib/comment'); alreadySigned = fs.readFileSync(path.resolve(__dirname, 'expected/alreadySigned.md'), 'UTF-8'); notYetSigned = fs.readFileSync(path.resolve(__dirname, 'expected/notYetSigned.md'), 'UTF-8'); exports.comment = { getCommentBody: function(test) { test.expect(2); test.equal(alreadySigned, comment.getCommentBody(true, { image: false, sender: 'davidpfahler', maintainer: 'boennemann', link: 'http://google.com' }), '"already signed comment body" looks good'); test.equal(notYetSigned, comment.getCommentBody(false, { image: false, sender: 'davidpfahler', link: 'http://google.com' }), '"not yet signed comment body" looks good'); return test.done(); } }; }).call(this);