test(docutils): add a basic test so CI will do something
MODIFY
packages/docutils/package.json
packages/docutils/package.json
"lint": "eslint -c ../../.eslintrc --ignore-path ../../.eslintignore .",
"test": "npm run test:unit",
"test:e2e": "echo \"No e2e tests for this package\"",
- "test:unit": "mocha --require ../../test/setup-babel.js \"./test/unit/**/*.spec.js\""
+ "test:unit": "mocha \"./test/unit/**/*.spec.js\""
},
"dependencies": {
"@appium/support": "file:../support",

ADD
packages/docutils/test/unit/mike.spec.js
+import { Mike } from '../..';
+import { expect } from 'chai';
+
+describe('Mike', function () {
+
+ it('should create args from params', function () {
+ const m = new Mike({configFile: '1', remote: '2', branch: '3', prefix: '4'});
+ expect(m.getMikeArgs('cmd', ['arg1', 'arg2'])).eql([
+ 'cmd', 'arg1', 'arg2', '--config-file', '1', '--remote', '2', '--branch', '3', '--prefix', '4'
+ ]);
+ });
+});

test(docutils): add a basic test so CI will do something