@@ -67,7 +67,7 @@ void main() {
6767
6868 expect (bundle.name, equals ('hello' ));
6969 expect (bundle.description, equals ('An example brick.' ));
70- expect (bundle.version, equals ('0.1.0+1 ' ));
70+ expect (bundle.version, equals ('0.1.0+2 ' ));
7171 expect (
7272 bundle.repository,
7373 equals ('https://github.com/felangel/mason/tree/master/bricks/hello' ),
@@ -238,7 +238,7 @@ void main() {
238238 equals (
239239 'name: hello\n '
240240 'description: An example brick.\n '
241- 'version: 0.1.0+1 \n '
241+ 'version: 0.1.0+2 \n '
242242 'environment:\n '
243243 ' mason: ^$packageVersion \n '
244244 'repository: "https://github.com/felangel/mason/tree/master/bricks/hello"\n '
@@ -259,45 +259,57 @@ void main() {
259259 expect (readme.existsSync (), isTrue);
260260 expect (
261261 readme.readAsNormalizedStringSync (),
262- equals (
263- '# hello\n '
264- '\n '
265- 'A new brick created with the Mason CLI.\n '
266- '\n '
267- '_Generated by [mason][1] 🧱_\n '
268- '\n '
269- '## Getting Started 🚀\n '
270- '\n '
271- 'This is a starting point for a new brick.\n '
272- '''A few resources to get you started if this is your first brick template:\n '''
273- '\n '
274- '- [Official Mason Documentation][2]\n '
275- '- [Code generation with Mason Blog][3]\n '
276- '- [Very Good Livestream: Felix Angelov Demos Mason][4]\n '
277- '\n '
278- '[1]: https://github.com/felangel/mason\n '
279- '[2]: https://github.com/felangel/mason/tree/master/packages/mason_cli#readme\n '
280- '[3]: https://verygood.ventures/blog/code-generation-with-mason\n '
281- '[4]: https://youtu.be/G4PTjA6tpTU\n ' ,
282- ),
262+ equals ('# hello\n '
263+ '\n '
264+ 'A hello world brick created with the Mason CLI.\n '
265+ '\n '
266+ '_Generated by [mason][1] 🧱_\n '
267+ '\n '
268+ '[1]: https://github.com/felangel/mason\n ' ),
283269 );
284270
285271 final changelog = File (path.join (tempDir.path, 'CHANGELOG.md' ));
286272 expect (changelog.existsSync (), isTrue);
287273 expect (
288274 changelog.readAsNormalizedStringSync (),
289275 equals (
276+ '# 0.1.0+2\n '
277+ '\n '
278+ '- chore: upgrade to `mason ^0.1.0`\n '
279+ '\n '
290280 '# 0.1.0+1\n '
291281 '\n '
292- '- TODO: Describe initial release. \n ' ,
282+ '- chore: initial release\n ' ,
293283 ),
294284 );
295285
296286 final license = File (path.join (tempDir.path, 'LICENSE' ));
297287 expect (license.existsSync (), isTrue);
298288 expect (
299289 license.readAsNormalizedStringSync (),
300- equals ('TODO: Add your license here.\n ' ),
290+ equals (
291+ 'The MIT License (MIT)\n '
292+ 'Copyright (c) 2024 Felix Angelov\n '
293+ '\n '
294+ 'Permission is hereby granted, free of charge, to any person\n '
295+ 'obtaining a copy of this software and associated documentation\n '
296+ '''files (the "Software"), to deal in the Software without restriction,\n '''
297+ '''including without limitation the rights to use, copy, modify, merge,\n '''
298+ '''publish, distribute, sublicense, and/or sell copies of the Software,\n '''
299+ '''and to permit persons to whom the Software is furnished to do so,\n '''
300+ 'subject to the following conditions:\n '
301+ '\n '
302+ '''The above copyright notice and this permission notice shall be included\n '''
303+ 'in all copies or substantial portions of the Software.\n '
304+ '\n '
305+ 'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\n '
306+ '''EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n '''
307+ '''MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n '''
308+ '''IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n '''
309+ '''DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n '''
310+ '''OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n '''
311+ 'USE OR OTHER DEALINGS IN THE SOFTWARE.' ,
312+ ),
301313 );
302314 });
303315
0 commit comments