Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
describe('use cordova-cli instead of cordova:', () => {
const binname = cordova.binname;
const testname = 'testgap';
beforeEach(() => {
cordova.binname = testname;
});
afterEach(() => {
cordova.binname = binname;
});
allcommands.forEach(k => {
it(k || '(default)', () => {
const result = help([k]);
expect(result.split('\n')[2]).toMatch(RegExp(testname + ' (?:' + k + '|command)\\b'));
});
});
});
});
afterEach(() => {
cordova.binname = binname;
});
allcommands.forEach(k => {