dustinspecker/generator-ng-poly

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

Summary

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

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

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

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

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