{"size": 855, "ext": "js", "max_stars_repo_path": "src/js/test/foreground/view/dialog/createPlaylistView.spec.js", "max_stars_repo_name": "pronoy2108/StreamusChromeExtension", "max_stars_repo_stars_event_min_datetime": "2015-01-01T06:43:00.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-08T19:47:02.000Z", "max_issues_repo_path": "src/js/test/foreground/view/dialog/createPlaylistView.spec.js", "max_issues_repo_name": "pronoy2108/StreamusChromeExtension", "max_issues_repo_issues_event_min_datetime": "2015-01-04T03:54:38.000Z", "max_issues_repo_issues_event_max_datetime": "2020-01-15T21:45:12.000Z", "max_forks_repo_path": "src/js/test/foreground/view/dialog/createPlaylistView.spec.js", "max_forks_repo_name": "pronoy2108/StreamusChromeExtension", "max_forks_repo_forks_event_min_datetime": "2015-01-05T08:55:19.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-08T17:04:09.000Z"}
{"max_stars_count": 1076, "max_issues_count": 391, "max_forks_count": 281, "avg_line_length": 34.2, "max_line_length": 76, "alphanum_fraction": 0.7461988304}
﻿import CreatePlaylistView from 'foreground/view/dialog/createPlaylistView';
import CreatePlaylist from 'foreground/model/dialog/createPlaylist';
import Playlists from 'background/collection/playlists';
import DataSourceManager from 'background/model/dataSourceManager';
import TestUtility from 'test/testUtility';
import ViewTestUtility from 'test/foreground/view/viewTestUtility';

describe('CreatePlaylistView', function() {
  beforeEach(function() {
    this.documentFragment = document.createDocumentFragment();
    this.view = new CreatePlaylistView({
      model: new CreatePlaylist(),
      playlists: new Playlists([], {
        userId: TestUtility.getGuid()
      }),
      dataSourceManager: new DataSourceManager()
    });
  });

  afterEach(function() {
    this.view.destroy();
  });

  ViewTestUtility.ensureBasicAssumptions.call(this);
});