mirror of
https://github.com/appium/appium.git
synced 2026-05-25 13:29:03 -05:00
5e96a6d2a7
This adds the requisite TS setup for base-plugin
19 lines
510 B
JavaScript
19 lines
510 B
JavaScript
import BasePlugin from '../../lib/plugin';
|
|
|
|
describe('base plugin', function () {
|
|
it('should exist', function () {
|
|
should.exist(BasePlugin);
|
|
});
|
|
it('should define its name', function () {
|
|
const p = new BasePlugin('foo');
|
|
p.name.should.eql('foo');
|
|
});
|
|
it('should create a logger', function () {
|
|
const p = new BasePlugin('foo');
|
|
should.exist(p.logger);
|
|
});
|
|
it('should define a default list of no new methods', function () {
|
|
BasePlugin.newMethodMap.should.eql({});
|
|
});
|
|
});
|