mirror of
https://github.com/appium/appium.git
synced 2026-05-20 02:18:52 -05:00
3ce313ebb9
This PR builds and tests `@appium/support` without Gulp. Much like the changes to `appium`: - Test files reorganized and renamed - Tests run via `mocha` proper using `@babel/register` (no build needed) - Build run via `@babel/cli`
19 lines
639 B
JavaScript
19 lines
639 B
JavaScript
import { node } from '../../lib';
|
|
|
|
|
|
|
|
describe('node utilities', function () {
|
|
describe('requirePackage', function () {
|
|
it('should be able to require a local package', async function () {
|
|
await node.requirePackage('chai').should.not.be.rejected;
|
|
});
|
|
// XXX: see #15951
|
|
it.skip('should be able to require a global package', async function () {
|
|
await node.requirePackage('npm').should.not.be.rejected;
|
|
});
|
|
it('should fail to find uninstalled package', async function () {
|
|
await node.requirePackage('appium-foo-driver').should.eventually.be.rejectedWith(/Unable to load package/);
|
|
});
|
|
});
|
|
});
|