refactor: move EventEmitter tests (#10463)

This commit is contained in:
Nikolay Vitkov 2023-06-28 13:36:26 +02:00 committed by GitHub
parent 6edb392ebc
commit 1f0dc4f3a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -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"
},

View File

@ -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;