refactor: move EventEmitter tests (#10463)
This commit is contained in:
parent
6edb392ebc
commit
1f0dc4f3a3
@ -34,7 +34,7 @@
|
||||
"test:firefox:headful": "wireit",
|
||||
"test:firefox:headless": "wireit",
|
||||
"test:firefox": "wireit",
|
||||
"test": "cross-env PUPPETEER_DEFERRED_PROMISE_DEBUG_TIMEOUT=20000 node tools/mochaRunner/lib/main.js --min-tests 1046",
|
||||
"test": "cross-env PUPPETEER_DEFERRED_PROMISE_DEBUG_TIMEOUT=20000 node tools/mochaRunner/lib/main.js --min-tests 1026",
|
||||
"validate-licenses": "tsx tools/third_party/validate-licenses.ts",
|
||||
"unit": "npm run unit --workspaces --if-present"
|
||||
},
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Copyright 2020 Google Inc. All rights reserved.
|
||||
* Copyright 2023 Google Inc. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -14,10 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import {describe, it, beforeEach} from 'node:test';
|
||||
|
||||
import expect from 'expect';
|
||||
import {EventEmitter} from 'puppeteer-core/internal/common/EventEmitter.js';
|
||||
import sinon from 'sinon';
|
||||
|
||||
import {EventEmitter} from './EventEmitter.js';
|
||||
|
||||
describe('EventEmitter', () => {
|
||||
let emitter: EventEmitter;
|
||||
|
Loading…
Reference in New Issue
Block a user