{"size": 382, "ext": "js", "max_stars_repo_path": "test/test.js", "max_stars_repo_name": "jonschlinkert/sync-pkg", "max_stars_repo_stars_event_min_datetime": "2015-02-25T14:53:27.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-12T22:31:48.000Z", "max_issues_repo_path": "test/test.js", "max_issues_repo_name": "jonschlinkert/sync-pkg", "max_issues_repo_issues_event_min_datetime": "2015-06-25T22:24:58.000Z", "max_issues_repo_issues_event_max_datetime": "2016-05-13T19:55:58.000Z", "max_forks_repo_path": "test/test.js", "max_forks_repo_name": "jonschlinkert/sync-bower", "max_forks_repo_forks_event_min_datetime": "2017-05-14T20:14:43.000Z", "max_forks_repo_forks_event_max_datetime": "2017-08-07T13:31:24.000Z"}
{"max_stars_count": 9, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 23.875, "max_line_length": 81, "alphanum_fraction": 0.5863874346}
'use strict';

require('mocha');
var assert = require('assert');
var sync = require('..');

describe('fields', function() {
  describe('main', function() {
    it('should cast main to an array', function() {
      var pkg = {main: 'index.js', description: 'foo', author: 'Jon Schlinkert'};
      var bower = sync(pkg, {});
      assert(Array.isArray(bower.main));
    });
  });
});
