Skip to content

Commit

Permalink
chore: move unit tests (#10498)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning00Blade committed Jul 3, 2023
1 parent d0d738d commit 0caf124
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 1026",
"test": "cross-env PUPPETEER_DEFERRED_PROMISE_DEBUG_TIMEOUT=20000 node tools/mochaRunner/lib/main.js --min-tests 1003",
"validate-licenses": "tsx tools/third_party/validate-licenses.ts",
"unit": "npm run unit --workspaces --if-present"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@
* limitations under the License.
*/

import {describe, it} from 'node:test';

import expect from 'expect';
import {TimeoutError} from 'puppeteer';

import {
DeviceRequestPrompt,
DeviceRequestPromptDevice,
DeviceRequestPromptManager,
} from 'puppeteer-core/internal/common/DeviceRequestPrompt.js';
import {EventEmitter} from 'puppeteer-core/internal/common/EventEmitter.js';
import {TimeoutSettings} from 'puppeteer-core/internal/common/TimeoutSettings.js';
} from './DeviceRequestPrompt.js';
import {TimeoutError} from './Errors.js';
import {EventEmitter} from './EventEmitter.js';
import {TimeoutSettings} from './TimeoutSettings.js';

class MockCDPSession extends EventEmitter {
async send(): Promise<any> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
* limitations under the License.
*/

import {describe, it} from 'node:test';

import expect from 'expect';
import {interpolateFunction} from 'puppeteer-core/internal/util/Function.js';

import {interpolateFunction} from './Function.js';

describe('Function', function () {
describe('interpolateFunction', function () {
Expand Down

0 comments on commit 0caf124

Please sign in to comment.