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

Commit

Permalink
chore(debugprint): convert debugprint to TypeScript (#5074)
Browse files Browse the repository at this point in the history
  • Loading branch information
CrispusDH authored and cnishina committed Dec 19, 2018
1 parent 3bf84f0 commit 7654039
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
21 changes: 0 additions & 21 deletions lib/frameworks/debugprint.js

This file was deleted.

21 changes: 21 additions & 0 deletions lib/frameworks/debugprint.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import * as util from 'util';
import {Logger} from '../logger';
import {Runner} from '../runner';
import {RunResults} from '../taskRunner';

const logger = new Logger('debugger');

/**
* A debug framework which does not actually run any tests, just spits
* out the list that would be run.
*
* @param {Runner} runner The current Protractor Runner.
* @param {Array} specs Array of Directory Path Strings.
* @return {Promise} Promise resolved with the test results
*/
export const run = (runner: Runner, specs: Array<string>): Promise<RunResults> => {
return new Promise(resolve => {
logger.info(`Resolved spec files: ${util.inspect(specs)}`);
resolve({failedCount: 0});
});
};

0 comments on commit 7654039

Please sign in to comment.