{"size": 814, "ext": "js", "max_stars_repo_path": "tests/unit/search/directives/album.js", "max_stars_repo_name": "thisissoon/FM-Frontend", "max_stars_repo_stars_event_min_datetime": "2020-08-09T23:02:29.000Z", "max_stars_repo_stars_event_max_datetime": "2020-08-09T23:02:29.000Z", "max_issues_repo_path": "tests/unit/search/directives/album.js", "max_issues_repo_name": "thisissoon/FM-Frontend", "max_issues_repo_issues_event_min_datetime": "2015-03-05T17:08:54.000Z", "max_issues_repo_issues_event_max_datetime": "2019-11-20T14:12:24.000Z", "max_forks_repo_path": "tests/unit/search/directives/album.js", "max_forks_repo_name": "thisissoon/FM-Frontend", "max_forks_repo_forks_event_min_datetime": "2019-10-26T04:33:35.000Z", "max_forks_repo_forks_event_max_datetime": "2019-10-26T04:33:35.000Z"}
{"max_stars_count": 1, "max_issues_count": 226, "max_forks_count": 1, "avg_line_length": 26.2580645161, "max_line_length": 77, "alphanum_fraction": 0.6044226044}
"use strict";

describe("FM.search.albumDirective", function() {
    var element, $scope, $rootScope, isolatedScope, $templateCache;

    beforeEach(module("FM.search.albumDirective"));

    beforeEach(inject(function (_$rootScope_, $compile, $injector) {
        $rootScope = _$rootScope_;
        $rootScope.album = { name: "foo" };

        $scope = $rootScope.$new();

        element = "<fm-album data-album=\"album\"></fm-album>";

        $templateCache = $injector.get("$templateCache");
        $templateCache.put("partials/search/album.html", "{{ album.name }}");

        element = $compile(element)($scope);
        $scope.$digest();

        isolatedScope = element.isolateScope();

    }));

    it("should render directive", function(){
        expect(element.html()).toContain("foo");
    });

});
