You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test('keep -side notes- in the body section', () {
75
-
final header ="type(some/scope): subject";
81
+
final header ="type(scope): subject";
76
82
final body =
77
83
"CI on master branch caught this:\n\n```\nUnhandled Exception:\nSystem.AggregateException: One or more errors occurred. (Some problem when connecting to 'api.mycryptoapi.com/eth')\n\n--- End of stack trace from previous location where exception was thrown ---\n\nat GWallet.Backend.FSharpUtil.ReRaise (System.Exception ex) [0x00000] in /Users/runner/work/geewallet/geewallet/src/GWallet.Backend/FSharpUtil.fs:206\n...\n```";
78
84
final message ="$header\n\n$body";
@@ -88,7 +94,7 @@ void main() {
88
94
const message ='fix(面试评价): 测试';
89
95
final commit =parse(message);
90
96
expect(commit.subject, isNotNull);
91
-
expect(commit.scope, isNotNull);
97
+
expect(commit.scopes, isNotNull);
92
98
});
93
99
test('should trim extra newlines', () {
94
100
final commit =parse(
@@ -104,7 +110,7 @@ void main() {
104
110
expect(commit.header,
105
111
equals('feat(scope): broadcast destroy event on scope destruction'));
106
112
expect(commit.type, equals('feat'));
107
-
expect(commit.scope, equals('scope'));
113
+
expect(commit.scopes, equals(['scope']));
108
114
expect(commit.subject,
109
115
equals('broadcast destroy event on scope destruction'));
110
116
expect(
@@ -156,7 +162,7 @@ void main() {
156
162
equals(
157
163
' feat(scope): broadcast destroy event on scope destruction '));
158
164
expect(commit.type, equals(null));
159
-
expect(commit.scope, equals(null));
165
+
expect(commit.scopes, equals(null));
160
166
expect(commit.subject, equals(null));
161
167
expect(
162
168
commit.body,
@@ -200,7 +206,7 @@ void main() {
200
206
expect(commit.header,
201
207
equals('feat(scope): broadcast destroy event on scope destruction'));
202
208
expect(commit.type, equals('feat'));
203
-
expect(commit.scope, equals('scope'));
209
+
expect(commit.scopes, equals(['scope']));
204
210
expect(commit.subject,
205
211
equals('broadcast destroy event on scope destruction'));
206
212
expect(
@@ -267,7 +273,7 @@ void main() {
267
273
268
274
test('should understand header parts in GitHub like pull request', () {
269
275
expect(githubCommit.type, equals('feat'));
270
-
expect(githubCommit.scope, equals('scope'));
276
+
expect(githubCommit.scopes, equals(['scope']));
271
277
expect(githubCommit.subject,
272
278
equals('broadcast destroy event on scope destruction'));
273
279
});
@@ -295,7 +301,7 @@ void main() {
295
301
296
302
test('should understand header parts in GitLab like merge request', () {
297
303
expect(gitlabCommit.type, equals('feat'));
298
-
expect(gitlabCommit.scope, equals('scope'));
304
+
expect(gitlabCommit.scopes, equals(['scope']));
299
305
expect(gitlabCommit.subject,
300
306
equals('broadcast destroy event on scope destruction'));
0 commit comments