{"size": 3738, "ext": "js", "max_stars_repo_path": "bower_components/ui/jsTags/node_modules/grunt-angular-templates/test/angular-templates_test.js", "max_stars_repo_name": "hbzhang/web", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "bower_components/ui/jsTags/node_modules/grunt-angular-templates/test/angular-templates_test.js", "max_issues_repo_name": "hbzhang/web", "max_issues_repo_issues_event_min_datetime": "2015-02-16T04:50:16.000Z", "max_issues_repo_issues_event_max_datetime": "2015-02-24T03:51:00.000Z", "max_forks_repo_path": "beerclub/node_modules/lineman-angular/node_modules/grunt-angular-templates/test/angular-templates_test.js", "max_forks_repo_name": "timsvoice/beerclub", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 11, "max_forks_count": null, "avg_line_length": 28.976744186, "max_line_length": 96, "alphanum_fraction": 0.6728196897}
'use strict';

var grunt     = require('grunt');
var fs        = require('fs');

exports.ngtemplates = {

  simple: function(test) {
    test.expect(1);

    var actual    = grunt.file.read('tmp/simple.js');
    var expected  = grunt.file.read('test/expected/simple.js');

    test.equal(expected, actual, 'should compile template as module `simple`');
    test.done();
  },

  multiple: function(test) {
    test.expect(1);

    var actual    = grunt.file.read('tmp/multiple.js');
    var expected  = grunt.file.read('test/expected/multiple.js');

    test.equal(expected, actual, 'should compile multiple templates together as `multiple`');
    test.done();
  },

  prepend: function(test) {
    test.expect(1);

    var actual    = grunt.file.read('tmp/simple_prepend.js');
    var expected  = grunt.file.read('test/expected/simple_prepend.js');

    test.equal(expected, actual, 'should prepend $templateCache ID with /prepend/simple.html"');
    test.done();
  },

  moduleString: function(test) {
    test.expect(1);

    var actual    = grunt.file.read('tmp/module_option_string.js');
    var expected  = grunt.file.read('test/expected/module_option_string.js');

    test.equal(expected, actual, 'set angular module name to the one provided');
    test.done();
  },

  moduleObject: function(test) {
    test.expect(1);

    var actual    = grunt.file.read('tmp/module_option_object.js');
    var expected  = grunt.file.read('test/expected/module_option_object.js');

    test.equal(expected, actual, ' define new angular module with provided name');
    test.done();
  },

  moduleObjectName: function(test) {
    test.expect(1);

    var actual    = grunt.file.read('tmp/module_option_object_name.js');
    var expected  = grunt.file.read('test/expected/module_option_string.js');

    test.equal(expected, actual, ' set angular module name to the one provided');
    test.done();
  },

  moduleObjectDefine: function(test) {
    test.expect(1);

    var actual    = grunt.file.read('tmp/module_option_object_define.js');
    var expected  = grunt.file.read('test/expected/module_option_object_define.js');

    test.equal(expected, actual, ' define new angular module with grunt target name');
    test.done();
  },

  noConflict: function(test) {
    test.expect(1);

    var actual    = grunt.file.read('tmp/noConflict_option_fixture.js');
    var expected  = grunt.file.read('test/expected/noConflict_option.js');

    test.equal(expected, actual, 'should reference angular by the noConflict options value');
    test.done();
  },

  concatSimple: function(test) {
    test.expect(1);

    var actual    = grunt.file.read('tmp/concat_simple_fixture.js');
    var expected  = grunt.file.read('tmp/concat_simple_expected.js');

    test.equal(expected, actual, 'should create concat target that equals ngtemplate');
    test.done();
  },

  concatMultiple: function(test) {
    test.expect(1);

    var actual    = grunt.file.read('tmp/concat_multiple_fixture.js');
    var expected  = grunt.file.read('tmp/concat_multiple_expected.js');

    test.equal(expected, actual, 'should create concat target that equals ngtemplate');
    test.done();
  },

  markup: function(test) {
    test.expect(1);

    var actual    = grunt.file.read('tmp/markup.js');
    var expected  = grunt.file.read('test/expected/markup.js');

    test.equal(expected, actual, 'should create minified target that equals ngtemplate');
    test.done();
  },

  markupOption: function(test) {
    test.expect(1);

    var actual    = grunt.file.read('tmp/markup.js');
    var expected  = grunt.file.read('test/expected/markup_options.js');

    test.equal(expected, actual, 'should create minified target that equals ngtemplate');
    test.done();
  }

};
