{"size": 1024, "ext": "js", "max_stars_repo_path": "node_modules/jpush-sdk/test/Report.tests.js", "max_stars_repo_name": "Caesar73/nc", "max_stars_repo_stars_event_min_datetime": "2019-03-12T19:32:25.000Z", "max_stars_repo_stars_event_max_datetime": "2020-08-19T07:37:44.000Z", "max_issues_repo_path": "node_modules/jpush-sdk/test/Report.tests.js", "max_issues_repo_name": "Caesar73/nc", "max_issues_repo_issues_event_min_datetime": "2019-03-07T06:27:12.000Z", "max_issues_repo_issues_event_max_datetime": "2019-06-04T09:29:25.000Z", "max_forks_repo_path": "node_modules/jpush-sdk/test/Report.tests.js", "max_forks_repo_name": "Caesar73/nc", "max_forks_repo_forks_event_min_datetime": "2019-03-16T17:01:15.000Z", "max_forks_repo_forks_event_max_datetime": "2020-08-19T08:16:09.000Z"}
{"max_stars_count": 7, "max_issues_count": 6, "max_forks_count": 5, "avg_line_length": 27.6756756757, "max_line_length": 79, "alphanum_fraction": 0.490234375}
var should = require('should');
var JPush = require('../index');
var Base = require('./BaseTest');

describe('Report test', function() {
    var client;
    before(function () {
        client = JPush.buildClient(Base.appKey, Base.masterSecret);
    });
    after(function () {});

    it('report test1', function(done) {
        client.getReportReceiveds('1083691241', function(err, res) {
            if (!err && res) {
                res.length.should.equal(1);
                done();
            }
        });
    });
    it('report test2', function(done) {
        client.getReportReceiveds('1083691241,', function(err, res) {
            if (!err && res) {
                res.length.should.equal(2);
                done();
            }
        });
    });
    it('report test3', function(done) {
        client.getReportReceiveds('1083691241,2023215321', function(err, res) {
            if (!err && res) {
                res.length.should.equal(2);
                done();
            }
        });
    });

});