Skip to content

Commit 0078ccf

Browse files
committed
Fix Tests for angular-dialog-service
1 parent c91de3c commit 0078ccf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

angular-dialog-service/angular-dialog-service-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ var dialogs : angular.dialogservice.IDialogService;
1313
dialogs.error('Error','An unknown error occurred preventing the completion of the requested action.');
1414
dialogs.wait('Creating User','Please wait while we attempt to create user "Michael Conroy."<br><br>This should only take a moment.',50);
1515
dialogs.notify('Something Happened','Something happened at this point in the application that I wish to let you know about');
16-
dialogs.create('url/to/a/template','ctrlrToUse',{data: topass,anotherVar: 'value'},{});
16+
dialogs.create('url/to/a/template','ctrlrToUse',{},{});

angular-dialog-service/angular-dialog-service.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,23 @@ declare module angular.dialogservice {
6060
/**
6161
* Opens a new error modal instance.
6262
*/
63-
error(header: string, msg: string, progress: number, opts: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance
63+
error(header: string, msg: string, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance
6464
/**
6565
* Opens a new wait modal instance.
6666
*/
67-
wait(header: string, msg: string, opts: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance
67+
wait(header: string, msg: string, progress: number, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance
6868
/**
6969
* Opens a new notify modal instance.
7070
*/
71-
notify(header: string, msg: string, opts: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance
71+
notify(header: string, msg: string, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance
7272
/**
7373
* Opens a new confirm modal instance.
7474
*/
75-
confirm(header: string, msg: string, opts: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance
75+
confirm(header: string, msg: string, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance
7676
/**
7777
* Opens a new custom modal instance.
7878
*/
79-
create(url: string, ctrlr: string, data: any, opts: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance
79+
create(url: string, ctrlr: string, data: any, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance
8080
}
8181

8282
}

0 commit comments

Comments
 (0)