From 7654039f66e7c1f794487779929bf6e3f6c833d8 Mon Sep 17 00:00:00 2001 From: Oleksii Date: Wed, 19 Dec 2018 03:31:27 +0200 Subject: [PATCH] chore(debugprint): convert debugprint to TypeScript (#5074) --- lib/frameworks/debugprint.js | 21 --------------------- lib/frameworks/debugprint.ts | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 lib/frameworks/debugprint.js create mode 100644 lib/frameworks/debugprint.ts diff --git a/lib/frameworks/debugprint.js b/lib/frameworks/debugprint.js deleted file mode 100644 index 0aaaa846a..000000000 --- a/lib/frameworks/debugprint.js +++ /dev/null @@ -1,21 +0,0 @@ -var util = require('util'), - Logger = require('../logger').Logger; - -var 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 - */ -exports.run = (runner, specs) => { - return new Promise(resolve => { - logger.info('Resolved spec files: ' + util.inspect(specs)); - resolve({ - failedCount: 0 - }); - }); -}; \ No newline at end of file diff --git a/lib/frameworks/debugprint.ts b/lib/frameworks/debugprint.ts new file mode 100644 index 000000000..4585d6393 --- /dev/null +++ b/lib/frameworks/debugprint.ts @@ -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): Promise => { + return new Promise(resolve => { + logger.info(`Resolved spec files: ${util.inspect(specs)}`); + resolve({failedCount: 0}); + }); +};