{"size": 766, "ext": "js", "max_stars_repo_path": "test/lead.js", "max_stars_repo_name": "IsaacRoss/salesforcer-leadposter", "max_stars_repo_stars_event_min_datetime": "2016-09-20T20:51:20.000Z", "max_stars_repo_stars_event_max_datetime": "2016-09-20T20:51:20.000Z", "max_issues_repo_path": "test/lead.js", "max_issues_repo_name": "IsaacRoss/salesforcer-leadposter", "max_issues_repo_issues_event_min_datetime": "2015-03-02T14:53:50.000Z", "max_issues_repo_issues_event_max_datetime": "2015-03-02T14:55:11.000Z", "max_forks_repo_path": "test/lead.js", "max_forks_repo_name": "IsaacRoss/salesforcer-leadposter", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 29.4615384615, "max_line_length": 116, "alphanum_fraction": 0.498694517}
/**
 * Created by Isaac on 2/27/2015.
 */
(function () {
    'use strict';

    var Lead = require('../models/lead'),
        should = require('should');

    describe('Lead: ', function () {
        describe('Default values', function () {
            var lead = {};
            before(function () {
                lead = new Lead({Email: 'me@cool.com', Company: "My Company", LastName: "Last", newProp: 'TestMe'});
            });

            it('lead source is "Business Site Inquiry"', function () {
                lead.leadSource.should.equal('Business Site Inquiry');
            });

            it('creates lead with whatever fields are passed in', function(){
                lead.newProp.should.equal('TestMe');
            });
        });
    });
})();