chore: fix assert imports (#13359)
This commit is contained in:
parent
c68f57d2d0
commit
32d30ae71d
|
|
@ -14,13 +14,12 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import assert from 'assert';
|
|
||||||
import debug from 'debug';
|
import debug from 'debug';
|
||||||
import type * as types from '../types';
|
import type * as types from '../types';
|
||||||
import * as net from 'net';
|
import * as net from 'net';
|
||||||
import { EventEmitter } from 'events';
|
import { EventEmitter } from 'events';
|
||||||
import type { Backend, DeviceBackend, SocketBackend } from './android';
|
import type { Backend, DeviceBackend, SocketBackend } from './android';
|
||||||
import { createGuid } from '../../utils/utils';
|
import { assert, createGuid } from '../../utils/utils';
|
||||||
|
|
||||||
export class AdbBackend implements Backend {
|
export class AdbBackend implements Backend {
|
||||||
async devices(options: types.AndroidDeviceOptions = {}): Promise<DeviceBackend[]> {
|
async devices(options: types.AndroidDeviceOptions = {}): Promise<DeviceBackend[]> {
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,9 @@ import type { TransformCallback } from 'stream';
|
||||||
import { Transform } from 'stream';
|
import { Transform } from 'stream';
|
||||||
import type { FullConfig, Suite, Reporter } from '../../types/testReporter';
|
import type { FullConfig, Suite, Reporter } from '../../types/testReporter';
|
||||||
import { HttpServer } from 'playwright-core/lib/utils/httpServer';
|
import { HttpServer } from 'playwright-core/lib/utils/httpServer';
|
||||||
import { calculateSha1, removeFolders } from 'playwright-core/lib/utils/utils';
|
import { assert, calculateSha1, removeFolders } from 'playwright-core/lib/utils/utils';
|
||||||
import type { JsonAttachment, JsonReport, JsonSuite, JsonTestCase, JsonTestResult, JsonTestStep } from './raw';
|
import type { JsonAttachment, JsonReport, JsonSuite, JsonTestCase, JsonTestResult, JsonTestStep } from './raw';
|
||||||
import RawReporter from './raw';
|
import RawReporter from './raw';
|
||||||
import assert from 'assert';
|
|
||||||
import yazl from 'yazl';
|
import yazl from 'yazl';
|
||||||
import { stripAnsiEscapes } from './base';
|
import { stripAnsiEscapes } from './base';
|
||||||
import { getPackageJsonPath } from '../util';
|
import { getPackageJsonPath } from '../util';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue