{"size": 700, "ext": "js", "max_stars_repo_path": "test/extractors.js", "max_stars_repo_name": "alirezamirian/node-youtube-dl", "max_stars_repo_stars_event_min_datetime": "2019-05-21T14:09:30.000Z", "max_stars_repo_stars_event_max_datetime": "2019-05-21T14:09:30.000Z", "max_issues_repo_path": "test/extractors.js", "max_issues_repo_name": "alirezamirian/node-youtube-dl", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/extractors.js", "max_forks_repo_name": "alirezamirian/node-youtube-dl", "max_forks_repo_forks_event_min_datetime": "2019-12-12T08:37:18.000Z", "max_forks_repo_forks_event_max_datetime": "2019-12-12T08:37:18.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 21.875, "max_line_length": 55, "alphanum_fraction": 0.5942857143}
var vows = require('vows');
var ytdl = require('..');
var assert = require('assert');

vows.describe('getExtractors').addBatch({
  'plain extractors': {
    'topic': function () {
      'use strict';
      ytdl.getExtractors(false, this.callback);
    },

    'extractors returned': function (err, extractors) {
      'use strict';
      assert.isNull(err);
      assert.isArray(extractors);
    }
  },

  'extractors with description': {
    'topic': function () {
      'use strict';
      ytdl.getExtractors(true, this.callback);
    },

    'extractors returned': function (err, formats) {
      'use strict';
      assert.isNull(err);
      assert.isArray(formats);
    }
  }
}).export(module);
