Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix(config): fix interface for functions such as onPrepare (#3434)
Browse files Browse the repository at this point in the history
closes #3431
  • Loading branch information
cnishina authored and heathkit committed Aug 3, 2016
1 parent 7c20dca commit 27f7981
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export interface Config {
* and globals from the test framework will NOT be available. The main
* purpose of this function should be to bring up test dependencies.
*/
beforeLaunch?: () => {};
beforeLaunch?: () => void;

/**
* A callback function called once protractor is ready and available, and
Expand Down Expand Up @@ -379,7 +379,7 @@ export interface Config {
* console.log('Executing capability', config.capabilities);
* });
*/
onPrepare?: () => {};
onPrepare?: () => void;

/**
* A callback function called once tests are finished. onComplete can
Expand All @@ -389,14 +389,14 @@ export interface Config {
* At this point, tests will be done but global objects will still be
* available.
*/
onComplete?: () => {};
onComplete?: () => void;

/**
* A callback function called once the tests have finished running and
* the WebDriver instance has been shut down. It is passed the exit code
* (0 if the tests passed). This is called once per capability.
*/
onCleanUp?: (exitCode: number) => {};
onCleanUp?: (exitCode: number) => void;

/**
* A callback function called once all tests have finished running and
Expand All @@ -405,7 +405,7 @@ export interface Config {
* asynchronous code to be executed before the program exits.
* This is called only once before the program exits (after onCleanUp).
*/
afterLaunch?: (exitCode: number) => {};
afterLaunch?: (exitCode: number) => void;

/**
* The params object will be passed directly to the Protractor instance,
Expand Down Expand Up @@ -491,7 +491,7 @@ export interface Config {
/**
* Function called to print jasmine results.
*/
print?: () => {};
print?: () => void;
/**
* If set, only execute specs whose names match the pattern, which is
* internally compiled to a RegExp.
Expand Down

0 comments on commit 27f7981

Please sign in to comment.