Skip to content

Disallow multiple module() calls in a descibe block #307

@remcohaszing

Description

@remcohaszing

I have encountered the following type of unittest setup several times now:

describe('', function() {
  // ...

  beforeEach(module('myApp'));
  beforeEach(module('ui.router'));

  // ...
});

This typically indicates that the module is not setup correctly. The myApp module should have ui.router as a dependency instead.

It should be allowed to add exceptions (e.g. ngMaterial-mock or ngCordovaMocks)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions