Skip to content

Commit 1496fa0

Browse files
committed
apply review(use import type, should.be.rejected)
1 parent 6c3a880 commit 1496fa0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/commands/log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import _ from 'lodash';
2-
import { WindowsDriver } from '../driver';
2+
import type { WindowsDriver } from '../driver';
33
import { LogDefRecord, StringRecord } from '@appium/types';
44

55
const COLOR_CODE_PATTERN = /\u001b\[(\d+(;\d+)*)?m/g; // eslint-disable-line no-control-regex

test/e2e/commands/log-e2e-specs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('log', function () {
3131
});
3232

3333
it('should throw an error when an invalid type is given', async function () {
34-
await driver.getLogs('INVALID_LOG_TYPE').should.rejected;
34+
await driver.getLogs('INVALID_LOG_TYPE').should.be.rejected;
3535
});
3636

3737
it('should get server logs', async function () {

0 commit comments

Comments
 (0)