Skip to content

Commit

Permalink
Fix layout selection test file MaibornWolff#904
Browse files Browse the repository at this point in the history
  • Loading branch information
lurichte committed Apr 9, 2020
1 parent 3074837 commit 31c14af
Showing 1 changed file with 6 additions and 2 deletions.
@@ -1,9 +1,13 @@
import "./layoutSelection.module"
import { LayoutSelectionController } from "./layoutSelection.component"
import { instantiateModule } from "../../../../mocks/ng.mockhelper"
import { getService, instantiateModule } from "../../../../mocks/ng.mockhelper"
import { IRootScopeService } from "angular"
import { StoreService } from "../../state/store.service"

describe("LayoutSelectionController", () => {
let layoutSelectionController: LayoutSelectionController
let $rootScope: IRootScopeService
let storeService = getService<StoreService>("storeService")

beforeEach(() => {
restartSystem()
Expand All @@ -15,7 +19,7 @@ describe("LayoutSelectionController", () => {
}

function rebuildController() {
layoutSelectionController = new LayoutSelectionController()
layoutSelectionController = new LayoutSelectionController($rootScope, storeService)
}

describe("someMethodName", () => {
Expand Down

0 comments on commit 31c14af

Please sign in to comment.