dustinspecker/generator-ng-poly

View on GitHub
lib/constant/templates/_spec.js

Summary

Maintainability
A
0 mins
Test Coverage
/* global describe, beforeEach, it, expect, inject, module */
'use strict';

describe('<%= lowerCamel %>', function () {
  var constant;

  beforeEach(module('<% if (parentModuleName) { %><%= parentModuleName %>.<% } %><%= moduleName %>'));

  beforeEach(inject(function (<%= lowerCamel %>) {
    constant = <%= lowerCamel %>;
  }));

  it('should equal 0', function () {
    expect(constant).<% if (testFramework === 'mocha') { %>to.equal<% } else { %>toBe<% } %>(0);
  });
});