aleman 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {createTest} from '@putout/test';
|
|
2
|
-
import * as plugin from './index.js';
|
|
3
|
-
|
|
4
|
-
const test = createTest(import.meta.url, {
|
|
5
|
-
plugins: [
|
|
6
|
-
['show-menu', plugin],
|
|
7
|
-
],
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
test('lib: show-menu: report', (t) => {
|
|
11
|
-
t.reportWithOptions('hide-menu', `Hide menu`, {
|
|
12
|
-
command: 'hide',
|
|
13
|
-
});
|
|
14
|
-
t.end();
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
test('lib: show-menu: transform with options: show-menu', (t) => {
|
|
18
|
-
t.transformWithOptions('show-menu', {
|
|
19
|
-
command: 'show',
|
|
20
|
-
});
|
|
21
|
-
t.end();
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
test('lib: show-menu: transform with options: hide-menu', (t) => {
|
|
25
|
-
t.transformWithOptions('hide-menu', {
|
|
26
|
-
command: 'hide',
|
|
27
|
-
});
|
|
28
|
-
t.end();
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
test('lib: show-menu: no report: no-menu', (t) => {
|
|
32
|
-
t.noReport('no-menu');
|
|
33
|
-
t.end();
|
|
34
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import {createTest} from '@putout/test';
|
|
2
|
-
import * as plugin from './index.js';
|
|
3
|
-
|
|
4
|
-
const test = createTest(import.meta.url, {
|
|
5
|
-
plugins: [
|
|
6
|
-
['remove-button', plugin],
|
|
7
|
-
],
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
test('html: remove-button: report', (t) => {
|
|
11
|
-
t.reportWithOptions('remove-button', `Remove button`, {
|
|
12
|
-
name: 'start',
|
|
13
|
-
});
|
|
14
|
-
t.end();
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
test('html: remove-button: transform', (t) => {
|
|
18
|
-
t.transform('remove-button');
|
|
19
|
-
t.end();
|
|
20
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {createTest} from '@putout/test';
|
|
2
|
-
import * as plugin from './index.js';
|
|
3
|
-
|
|
4
|
-
const test = createTest(import.meta.url, {
|
|
5
|
-
plugins: [
|
|
6
|
-
['select-next', plugin],
|
|
7
|
-
],
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
test('lib: select-next: report', (t) => {
|
|
11
|
-
t.report('select-next', `Select next item`);
|
|
12
|
-
t.end();
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
test('lib: select-next: transform', (t) => {
|
|
16
|
-
t.transform('select-next');
|
|
17
|
-
t.end();
|
|
18
|
-
});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {createTest} from '@putout/test';
|
|
2
|
-
import * as plugin from './index.js';
|
|
3
|
-
|
|
4
|
-
const test = createTest(import.meta.url, {
|
|
5
|
-
plugins: [
|
|
6
|
-
['set-value', plugin],
|
|
7
|
-
],
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
test('aleman: set-value: report', (t) => {
|
|
11
|
-
t.reportWithOptions('set-value', `Use 'if condition' instead of 'ternary expression'`, {
|
|
12
|
-
name: 'x',
|
|
13
|
-
});
|
|
14
|
-
t.end();
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
test('aleman: set-value: transform with options', (t) => {
|
|
18
|
-
t.transformWithOptions('set-value', {
|
|
19
|
-
name: 'x',
|
|
20
|
-
});
|
|
21
|
-
t.end();
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
test('aleman: set-value: no transform with options: data-name', (t) => {
|
|
25
|
-
t.noTransformWithOptions('data-name', {
|
|
26
|
-
name: 'x',
|
|
27
|
-
});
|
|
28
|
-
t.end();
|
|
29
|
-
});
|