Fix spec for test of manage trigger

This commit is contained in:
Joseph Schorr 2018-09-27 16:29:09 -04:00
parent 9cd17d78d2
commit db8219185c

View file

@ -13,6 +13,7 @@ describe("ManageTriggerComponent", () => {
var tableServiceMock: Mock<any>;
var triggerServiceMock: Mock<any>;
var rolesServiceMock: Mock<any>;
var keyServiceMock: Mock<any>;
var repository: any;
var $scopeMock: Mock<ng.IScope>;
@ -21,11 +22,13 @@ describe("ManageTriggerComponent", () => {
tableServiceMock = new Mock<any>();
triggerServiceMock = new Mock<any>();
rolesServiceMock = new Mock<any>();
keyServiceMock = new Mock<any>();
$scopeMock = new Mock<ng.IScope>();
component = new ManageTriggerComponent(apiServiceMock.Object,
tableServiceMock.Object,
triggerServiceMock.Object,
rolesServiceMock.Object,
keyServiceMock.Object,
$scopeMock.Object);
component.repository = {namespace: "someuser", name: "somerepo"};
component.trigger = {id: "2cac6317-754e-47d4-88d3-2a50b3f09ee3", service: "github"};