mirror of
https://github.com/appium/appium.git
synced 2026-10-29 04:36:39 +08:00
BREAKING CHANGE: require('@appium/support') no longer works; consumers must import it instead.
BREAKING CHANGE: require('@appium/base-driver') no longer works; drivers extending BaseDriver via require must switch to import.
BREAKING CHANGE: require('@appium/base-plugin') no longer works; plugins extending BasePlugin via require must switch to import.
BREAKING CHANGE: require('appium') no longer works; plugins extending the package via require must switch to import.
BREAKING CHANGE: require('@appium/fake-plugin') no longer works; consumers must import it instead.
BREAKING CHANGE: require('@appium/fake-driver') no longer works; consumers must import it instead.
BREAKING CHANGE: require('@appium/types') no longer works; consumers must import it instead.
BREAKING CHANGE: require('@appium/logger') no longer works; consumers must import it instead.
BREAKING CHANGE: require('@appium/schema') no longer works; consumers must import it instead.
25 lines
601 B
TypeScript
25 lines
601 B
TypeScript
import assert from 'node:assert/strict';
|
|
import {describe, it} from 'node:test';
|
|
|
|
import {BasePlugin} from '../../lib/plugin.js';
|
|
|
|
describe('base plugin', function () {
|
|
it('should exist', function () {
|
|
assert.ok(BasePlugin);
|
|
});
|
|
|
|
it('should define its name', function () {
|
|
const p = new BasePlugin('foo');
|
|
assert.equal(p.name, 'foo');
|
|
});
|
|
|
|
it('should create a logger', function () {
|
|
const p = new BasePlugin('foo');
|
|
assert.ok(p.log);
|
|
});
|
|
|
|
it('should define a default list of no new methods', function () {
|
|
assert.deepEqual(BasePlugin.newMethodMap, {});
|
|
});
|
|
});
|