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

Commit cf43651

Browse files
CrispusDHcnishina
authored andcommittedMar 23, 2019
chore(debugprint): convert debugprint to TypeScript (#5074)
1 parent d213aa9 commit cf43651

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed
 

‎lib/frameworks/debugprint.js

-21
This file was deleted.

‎lib/frameworks/debugprint.ts

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import * as util from 'util';
2+
import {Logger} from '../logger';
3+
import {Runner} from '../runner';
4+
import {RunResults} from '../taskRunner';
5+
6+
const logger = new Logger('debugger');
7+
8+
/**
9+
* A debug framework which does not actually run any tests, just spits
10+
* out the list that would be run.
11+
*
12+
* @param {Runner} runner The current Protractor Runner.
13+
* @param {Array} specs Array of Directory Path Strings.
14+
* @return {Promise} Promise resolved with the test results
15+
*/
16+
export const run = (runner: Runner, specs: Array<string>): Promise<RunResults> => {
17+
return new Promise(resolve => {
18+
logger.info(`Resolved spec files: ${util.inspect(specs)}`);
19+
resolve({failedCount: 0});
20+
});
21+
};

0 commit comments

Comments
 (0)
This repository has been archived.