|
1 | | -exports['commit-message-install getCommand removes --file and its argument 1'] = { |
2 | | - "args": [ |
3 | | - "--file", |
4 | | - "file.txt", |
5 | | - "echo", |
6 | | - "foo", |
7 | | - "bar" |
8 | | - ], |
9 | | - "command": "echo foo bar" |
| 1 | +exports[ |
| 2 | + 'commit-message-install getCommand removes --file and its argument 1' |
| 3 | +] = { |
| 4 | + args: ['--file', 'file.txt', 'echo', 'foo', 'bar'], |
| 5 | + command: 'echo foo bar' |
10 | 6 | } |
11 | 7 |
|
12 | 8 | exports['commit-message-install getCommand removes -f and its argument 1'] = { |
13 | | - "args": [ |
14 | | - "-f", |
15 | | - "file.txt", |
16 | | - "echo", |
17 | | - "foo", |
18 | | - "bar" |
19 | | - ], |
20 | | - "command": "echo foo bar" |
| 9 | + args: ['-f', 'file.txt', 'echo', 'foo', 'bar'], |
| 10 | + command: 'echo foo bar' |
21 | 11 | } |
22 | 12 |
|
23 | | -exports['commit-message-install getCommand returns original command from array 1'] = { |
24 | | - "args": [ |
25 | | - "echo", |
26 | | - "foo", |
27 | | - "bar" |
28 | | - ], |
29 | | - "command": "echo foo bar" |
| 13 | +exports[ |
| 14 | + 'commit-message-install getCommand returns original command from array 1' |
| 15 | +] = { |
| 16 | + args: ['echo', 'foo', 'bar'], |
| 17 | + command: 'echo foo bar' |
30 | 18 | } |
31 | 19 |
|
32 | 20 | exports['commit-message-install getJsonBlock finds single json block 1'] = { |
33 | | - "foo": "bar" |
| 21 | + foo: 'bar' |
34 | 22 | } |
35 | 23 |
|
36 | | -exports['commit-message-install getJsonBlock finds single json block at start 1'] = { |
37 | | - "foo": "bar" |
| 24 | +exports[ |
| 25 | + 'commit-message-install getJsonBlock finds single json block at start 1' |
| 26 | +] = { |
| 27 | + foo: 'bar' |
38 | 28 | } |
39 | 29 |
|
40 | | -exports['commit-message-install getJsonBlock returns first found json block 1'] = { |
41 | | - "foo": "bar" |
| 30 | +exports[ |
| 31 | + 'commit-message-install getJsonBlock returns first found json block 1' |
| 32 | +] = { |
| 33 | + foo: 'bar' |
42 | 34 | } |
43 | 35 |
|
44 | 36 | exports['commit-message-install getJsonBlock returns json with branch 1'] = { |
45 | | - "foo": "bar", |
46 | | - "branch": "test-branch" |
| 37 | + foo: 'bar', |
| 38 | + branch: 'test-branch' |
47 | 39 | } |
48 | 40 |
|
49 | | -exports['commit-message-install getJsonFromGit extracts the json from git message 1'] = { |
50 | | - "platform": "win32", |
51 | | - "branch": "some-branch" |
| 41 | +exports[ |
| 42 | + 'commit-message-install getJsonFromGit extracts the json from git message 1' |
| 43 | +] = { |
| 44 | + platform: 'win32', |
| 45 | + branch: 'some-branch' |
52 | 46 | } |
53 | 47 |
|
54 | | -exports['commit-message-install gets commit message for specific commit returns just the body of specific commit 1'] = ` |
| 48 | +exports[ |
| 49 | + 'commit-message-install gets commit message for specific commit returns just the body of specific commit 1' |
| 50 | +] = ` |
55 | 51 | message body |
56 | 52 | ` |
57 | 53 |
|
58 | | -exports['commit-message-install gets last commit message returns just the body of the commit message 1'] = ` |
| 54 | +exports[ |
| 55 | + 'commit-message-install gets last commit message returns just the body of the commit message 1' |
| 56 | +] = ` |
59 | 57 | message body |
60 | 58 | ` |
61 | 59 |
|
62 | | -exports['commit-message-install isPlatformAllowed compares platforms isPlatformAllowed 1'] = { |
63 | | - "name": "isPlatformAllowed", |
64 | | - "behavior": [ |
| 60 | +exports[ |
| 61 | + 'commit-message-install isPlatformAllowed compares platforms isPlatformAllowed 1' |
| 62 | +] = { |
| 63 | + name: 'isPlatformAllowed', |
| 64 | + behavior: [ |
65 | 65 | { |
66 | | - "given": [ |
67 | | - "win32", |
68 | | - "win32" |
69 | | - ], |
70 | | - "expect": true |
| 66 | + given: ['win32', 'win32'], |
| 67 | + expect: true |
71 | 68 | }, |
72 | 69 | { |
73 | | - "given": [ |
74 | | - "win32", |
75 | | - "linux" |
76 | | - ], |
77 | | - "expect": false |
| 70 | + given: ['win32', 'linux'], |
| 71 | + expect: false |
78 | 72 | }, |
79 | 73 | { |
80 | | - "given": [ |
81 | | - "*", |
82 | | - "linux" |
83 | | - ], |
84 | | - "expect": true |
| 74 | + given: ['*', 'linux'], |
| 75 | + expect: true |
85 | 76 | }, |
86 | 77 | { |
87 | | - "given": [ |
88 | | - "win32,linux", |
89 | | - "linux" |
90 | | - ], |
91 | | - "expect": true |
| 78 | + given: ['win32,linux', 'linux'], |
| 79 | + expect: true |
92 | 80 | }, |
93 | 81 | { |
94 | | - "given": [ |
95 | | - "win32|linux", |
96 | | - "linux" |
97 | | - ], |
98 | | - "expect": true |
| 82 | + given: ['win32|linux', 'linux'], |
| 83 | + expect: true |
99 | 84 | }, |
100 | 85 | { |
101 | | - "given": [ |
102 | | - "win32, linux", |
103 | | - "linux" |
104 | | - ], |
105 | | - "expect": true |
| 86 | + given: ['win32, linux', 'linux'], |
| 87 | + expect: true |
106 | 88 | } |
107 | 89 | ] |
108 | 90 | } |
109 | 91 |
|
110 | 92 | exports['formed json object'] = { |
111 | | - "platform": "linux", |
112 | | - "env": {}, |
113 | | - "packages": "debug chalk", |
114 | | - "status": { |
115 | | - "owner": "foo", |
116 | | - "repo": "bar", |
117 | | - "sha": "2d8687c143165218c6b52a76018b76cf99137e48" |
| 93 | + platform: 'linux', |
| 94 | + arch: 'x64', |
| 95 | + env: {}, |
| 96 | + packages: 'debug chalk', |
| 97 | + status: { |
| 98 | + owner: 'foo', |
| 99 | + repo: 'bar', |
| 100 | + sha: '2d8687c143165218c6b52a76018b76cf99137e48' |
118 | 101 | } |
119 | 102 | } |
120 | 103 |
|
121 | 104 | exports['parsed back message'] = { |
122 | | - "platform": "linux", |
123 | | - "env": {}, |
124 | | - "packages": "debug chalk", |
125 | | - "status": { |
126 | | - "owner": "foo", |
127 | | - "repo": "bar", |
128 | | - "sha": "2d8687c143165218c6b52a76018b76cf99137e48" |
| 105 | + platform: 'linux', |
| 106 | + arch: 'x64', |
| 107 | + env: {}, |
| 108 | + packages: 'debug chalk', |
| 109 | + status: { |
| 110 | + owner: 'foo', |
| 111 | + repo: 'bar', |
| 112 | + sha: '2d8687c143165218c6b52a76018b76cf99137e48' |
129 | 113 | } |
130 | 114 | } |
0 commit comments