{"id":21372271,"url":"https://github.com/rxlabz/ngdart-component-testbed","last_synced_at":"2026-05-22T05:20:27.766Z","repository":{"id":66351586,"uuid":"81212717","full_name":"rxlabz/ngdart-component-testbed","owner":"rxlabz","description":"example of angular dart component test with https://github.com/dart-lang/angular_test","archived":false,"fork":false,"pushed_at":"2017-02-07T14:03:48.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T15:08:49.729Z","etag":null,"topics":["angular","dart","testing"],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rxlabz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-07T13:47:11.000Z","updated_at":"2017-02-07T13:48:27.000Z","dependencies_parsed_at":"2023-02-27T00:01:19.550Z","dependency_job_id":null,"html_url":"https://github.com/rxlabz/ngdart-component-testbed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxlabz%2Fngdart-component-testbed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxlabz%2Fngdart-component-testbed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxlabz%2Fngdart-component-testbed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxlabz%2Fngdart-component-testbed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rxlabz","download_url":"https://codeload.github.com/rxlabz/ngdart-component-testbed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243846979,"owners_count":20357297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","dart","testing"],"created_at":"2024-11-22T08:18:49.112Z","updated_at":"2026-05-22T05:20:27.720Z","avatar_url":"https://github.com/rxlabz.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular_test example\n\n\n## pubspec.yml\n\n```yam\ntransformers:\n  - angular2/transform/codegen\n  - angular2/transform/reflection_remover:\n      $include:\n        - test/compo_test.dart\n  - test/pub_serve:\n      $include: test/**_test.dart\n```\n\n## compo_test.dart\n\n```dart\n@Tags(const ['aot'])\n@TestOn('browser')\n\nimport 'package:angular2/core.dart';\nimport 'package:angular2/src/core/reflection/reflection_capabilities.dart';\n\nimport 'package:angular2/src/modules/testing/lib/testing.dart';\nimport 'package:test/test.dart';\nimport 'package:xplor_ng_test_bed/compo/compo.dart';\n\n@AngularEntrypoint()\nvoid main(){\n  reflector.reflectionCapabilities = new ReflectionCapabilities();\n\n  tearDown(disposeAnyRunningTest);\n\n  group('test my compo',(){\n      test('1er test compo titre',() async {\n          final testBed = new NgTestBed\u003cCompo\u003e();\n          final textFxtr = await testBed.create(onLoad:(c){\n            c.title = \"Yo\";\n          });\n\n          expect( textFxtr.element.innerHtml, contains('Yo') );\n      });\n\n      test('2nd test compo titre',() async {\n          final testBed = new NgTestBed\u003cCompo\u003e();\n          final textFxtr = await testBed.create(onLoad:(c){\n            c.title = \"Coucou\";\n          });\n\n          expect( textFxtr.element.innerHtml, contains('Coucou') );\n      });\n  });\n}\n```\n\n## compo_test.html\n\n```html\n\u003chtml\u003e\n\n\u003cbody\u003e\n\u003cscript type=\"application/dart\" src=\"compo_test.dart\"\u003e\u003c/script\u003e\n\u003clink rel=\"x-dart-test\" href=\"compo_test.dart\"\u003e\n\u003cscript src=\"packages/test/dart.js\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n\n\u003c/html\u003e\n```\n\n## testing\n\n```bash\npub run angular_test\n\n# ou \n\npub serve # =\u003e localhost:8081/path_test.html \n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxlabz%2Fngdart-component-testbed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxlabz%2Fngdart-component-testbed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxlabz%2Fngdart-component-testbed/lists"}