We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec64d3 commit 8e72100Copy full SHA for 8e72100
src/commands/version/version.test.js
@@ -1,24 +1,20 @@
1
'use strict';
2
3
+const { service } = require('@micro-app/cli');
4
+
5
/* global expect */
6
7
describe('Command version', () => {
8
9
it('version', async () => {
10
- const { service } = require('../../../');
-
11
const plugin = service.plugins.find(item => item.id === 'cli:plugin-command-version');
12
expect(typeof plugin).toEqual('object');
13
14
await service.init();
15
16
expect(plugin[Symbol.for('api')]).not.toBeUndefined();
17
- plugin[Symbol.for('api')].addCommandVersion({
18
- name: 'a',
19
- version: 'b',
20
- description: 'c',
21
- });
+ require('./index')(plugin[Symbol.for('api')]);
22
23
await service.runCommand('version');
24
0 commit comments