Files
appium/packages/base-plugin/test/unit/plugin.spec.js
Christopher Hiller 5e96a6d2a7 feat(base-plugin): prepare for use by plugins
This adds the requisite TS setup for base-plugin
2022-05-12 12:32:57 -07:00

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({});
});
});