@@ -2,35 +2,55 @@ import rule, { sortScripts } from "../../src/rules/natural-order";
2
2
3
3
describe ( "natural-order.ts" , ( ) => {
4
4
const scriptsUnsorted = {
5
- postbuild : "foo" ,
6
- "test:lint" : "baz" ,
7
- "build:cleanup" : "bar" ,
8
- "update:typings" : "something" ,
9
- test : "jest" ,
10
- posttest : "baz" ,
11
- pretest : "baz" ,
12
- update : "foo" ,
13
- "update:dependencies" : "updtr" ,
14
- prebuild : "foo" ,
15
- build : "foo" ,
16
- publish : "ok" ,
17
- prepublishOnly : "else" ,
5
+ postbuild : "echo 1" ,
6
+ build : "echo 1" ,
7
+ "test:lint" : "echo 1" ,
8
+ "test:lint:scripts:es7" : "echo 1" ,
9
+ dev : "echo 1" ,
10
+ posttest : "echo 1" ,
11
+ "other:update:dependencies" : "echo 1" ,
12
+ preinstall : "echo 1" ,
13
+ prebuild : "echo 1" ,
14
+ "other:update" : "echo 1" ,
15
+ "other:update:typings" : "echo 1" ,
16
+ "test:lint:scripts" : "echo 1" ,
17
+ "test:lint:scripts:babel" : "echo 1" ,
18
+ "test:lint:styles:scss" : "echo 1" ,
19
+ publish : "echo 1" ,
20
+ prepublishOnly : "echo 1" ,
21
+ "build:cleanup" : "echo 1" ,
22
+ "test:lint:styles" : "echo 1" ,
23
+ test : "echo 1" ,
24
+ start : "echo 1" ,
25
+ pretest : "echo 1" ,
26
+ "pretest:lint:scripts:es7" : "echo 1" ,
27
+ "test:lint:styles:postcss" : "echo 1" ,
18
28
} ;
19
29
20
30
const scriptsSorted = {
21
- prebuild : "foo" ,
22
- build : "foo" ,
23
- "build:cleanup" : "bar" ,
24
- postbuild : "foo" ,
25
- publish : "ok" ,
26
- prepublishOnly : "else" ,
27
- pretest : "baz" ,
28
- test : "jest" ,
29
- "test:lint" : "baz" ,
30
- posttest : "baz" ,
31
- update : "foo" ,
32
- "update:dependencies" : "updtr" ,
33
- "update:typings" : "something" ,
31
+ prebuild : "echo 1" ,
32
+ build : "echo 1" ,
33
+ "build:cleanup" : "echo 1" ,
34
+ postbuild : "echo 1" ,
35
+ dev : "echo 1" ,
36
+ preinstall : "echo 1" ,
37
+ "other:update" : "echo 1" ,
38
+ "other:update:dependencies" : "echo 1" ,
39
+ "other:update:typings" : "echo 1" ,
40
+ publish : "echo 1" ,
41
+ prepublishOnly : "echo 1" ,
42
+ start : "echo 1" ,
43
+ pretest : "echo 1" ,
44
+ "pretest:lint:scripts:es7" : "echo 1" ,
45
+ test : "echo 1" ,
46
+ "test:lint" : "echo 1" ,
47
+ "test:lint:scripts" : "echo 1" ,
48
+ "test:lint:scripts:babel" : "echo 1" ,
49
+ "test:lint:scripts:es7" : "echo 1" ,
50
+ "test:lint:styles" : "echo 1" ,
51
+ "test:lint:styles:postcss" : "echo 1" ,
52
+ "test:lint:styles:scss" : "echo 1" ,
53
+ posttest : "echo 1" ,
34
54
} ;
35
55
36
56
describe ( "validate()" , ( ) => {
0 commit comments