File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,21 @@ void main() {
9393 'All skills in flutter_skills.yaml must start with "flutter-"' ,
9494 );
9595 });
96+
97+ test ('description contains "Flutter"' , () {
98+ final description = item['description' ] as String ? ;
99+ expect (
100+ description,
101+ isNotNull,
102+ reason: 'Skill must have a description' ,
103+ );
104+ expect (
105+ description,
106+ contains ('Flutter' ),
107+ reason:
108+ 'All skills in flutter_skills.yaml must contain "Flutter" in their description' ,
109+ );
110+ });
96111 } else if (p.basename (file.path) == 'dart_skills.yaml' ) {
97112 test ('name starting with "dart-"' , () {
98113 expect (
@@ -101,6 +116,21 @@ void main() {
101116 reason: 'All skills in dart_skills.yaml must start with "dart-"' ,
102117 );
103118 });
119+
120+ test ('description contains "Dart"' , () {
121+ final description = item['description' ] as String ? ;
122+ expect (
123+ description,
124+ isNotNull,
125+ reason: 'Skill must have a description' ,
126+ );
127+ expect (
128+ description,
129+ contains ('Dart' ),
130+ reason:
131+ 'All skills in dart_skills.yaml must contain "Dart" in their description' ,
132+ );
133+ });
104134 }
105135
106136 group (name, () {
You can’t perform that action at this time.
0 commit comments