Skip to content
This repository was archived by the owner on Mar 26, 2018. It is now read-only.
This repository was archived by the owner on Mar 26, 2018. It is now read-only.

Test fails for service generator #338

Closed
@schickling

Description

@schickling

If you want to create a service with e.g $ yo angular:service chineseRemainderTheorem a test file gets generated, in my case this one:

'use strict';

describe('Service: chineseRemainderTheorem', function () {

  // load the service's module
  beforeEach(module('algorithmsApp'));

  // instantiate service
  var chineseRemainderTheorem;
  beforeEach(inject(function (_chineseRemainderTheorem_) {
    chineseRemainderTheorem = _chineseRemainderTheorem_;
  }));

  it('should do something', function () {
    expect(!!chineseRemainderTheorem).toBe(true);
  });

});

The injection doesn't work out of the box because of _chineseRemainderTheorem_ so the tests fail

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions