dustinspecker/generator-ng-poly

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

Summary

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

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

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

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

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