refactor: eliminate eslint errors (#920)
* refactor: eliminate eslint errors as many as I can * refactor: fix more eslint errors in the record module * LINT: fix @typescript-eslint/unbound-method * LINT: fix all eslint errors in source code * LINT: fix as many eslint warnings as possible Co-authored-by: Justin Halsall <Juice10@users.noreply.github.com>
This commit is contained in:
@@ -12,7 +12,12 @@ import {
|
||||
generateRecordSnippet,
|
||||
ISuite,
|
||||
} from './utils';
|
||||
import { recordOptions, eventWithTime, EventType } from '../src/types';
|
||||
import {
|
||||
recordOptions,
|
||||
eventWithTime,
|
||||
EventType,
|
||||
RecordPlugin,
|
||||
} from '../src/types';
|
||||
import { visitSnapshot, NodeType } from 'rrweb-snapshot';
|
||||
|
||||
describe('record integration tests', function (this: ISuite) {
|
||||
@@ -442,8 +447,8 @@ describe('record integration tests', function (this: ISuite) {
|
||||
const page: puppeteer.Page = await browser.newPage();
|
||||
await page.goto('about:blank');
|
||||
await page.setContent(
|
||||
getHtml.call(this, 'log.html', {
|
||||
plugins: '[rrwebConsoleRecord.getRecordConsolePlugin()]',
|
||||
getHtml('log.html', {
|
||||
plugins: ('[rrwebConsoleRecord.getRecordConsolePlugin()]' as unknown) as RecordPlugin<unknown>[],
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user