Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.73 KB | None | 0 0
  1. XXXXComponent
  2. :heavy_multiplication_x: Should Match Current Tab as 1
  3. Chrome 55.0.2883 (Mac OS X 10.10.5)
  4. Error: Unexpected value 'FormGroup' declared by the module 'DynamicTestModule'
  5. at SyntaxError.ZoneAwareError (webpack:///~/zone.js/dist/zone.js:811:0 <- config/spec-bundle.js:74048:33)
  6. at SyntaxError.BaseError [as constructor] (webpack:///~/@angular/compiler/src/facade/errors.js:26:0 <- config/spec-bundle.js:78913:16)
  7. at new SyntaxError (webpack:///~/@angular/compiler/src/util.js:151:0 <- config/spec-bundle.js:6408:16)
  8. at webpack:///~/@angular/compiler/src/metadata_resolver.js:475:0 <- config/spec-bundle.js:19829:40
  9. at Array.forEach (native)
  10. at CompileMetadataResolver.getNgModuleMetadata (webpack:///~/@angular/compiler/src/metadata_resolver.js:457:0 <- config/spec-bundle.js:19811:54)
  11. at JitCompiler._loadModules (webpack:///~/@angular/compiler/src/jit/compiler.js:165:25 <- config/spec-bundle.js:55462:64)
  12. at JitCompiler._compileModuleAndAllComponents (webpack:///~/@angular/compiler/src/jit/compiler.js:144:25 <- config/spec-bundle.js:55441:52)
  13. at JitCompiler.compileModuleAndAllComponentsSync (webpack:///~/@angular/compiler/src/jit/compiler.js:98:0 <- config/spec-bundle.js:55395:21)
  14. at TestingCompilerImpl.compileModuleAndAllComponentsSync (webpack:///~/@angular/compiler/bundles/compiler-testing.umd.js:482:0 <- config/spec-bundle.js:78583:35)
  15. at TestBed._initIfNeeded (webpack:///~/@angular/core/bundles/core-testing.umd.js:761:0 <- config/spec-bundle.js:26731:40)
  16. at TestBed.createComponent (webpack:///~/@angular/core/bundles/core-testing.umd.js:844:0 <- config/spec-bundle.js:26814:18)
  17. at Function.TestBed.createComponent (webpack:///~/@angular/core/bundles/core-testing.umd.js:673:0 <- config/spec-bundle.js:26643:33)
  18. at Object.<anonymous> (webpack:///src/app/zzzz/yyyy/xxxx.component.spec.ts:20:0 <- config/spec-bundle.js:93231:37)
  19. at ZoneDelegate.invoke (webpack:///~/zone.js/dist/zone.js:242:0 <- config/spec-bundle.js:73479:26)
  20. at ProxyZoneSpec.onInvoke (webpack:///~/zone.js/dist/proxy.js:79:0 <- config/spec-bundle.js:73133:39)
  21. at ZoneDelegate.invoke (webpack:///~/zone.js/dist/zone.js:241:0 <- config/spec-bundle.js:73478:32)
  22. at Zone.run (webpack:///~/zone.js/dist/zone.js:113:0 <- config/spec-bundle.js:73350:43)
  23. at Object.<anonymous> (webpack:///~/zone.js/dist/jasmine-patch.js:102:0 <- config/spec-bundle.js:72848:34)
  24. at ZoneQueueRunner.jasmine.QueueRunner.ZoneQueueRunner.execute (webpack:///~/zone.js/dist/jasmine-patch.js:132:0 <- config/spec-bundle.js:72878:42)
  25. at ZoneQueueRunner.jasmine.QueueRunner.ZoneQueueRunner.execute (webpack:///~/zone.js/dist/jasmine-patch.js:132:0 <- config/spec-bundle.js:72878:42)
  26. at webpack:///~/zone.js/dist/jasmine-patch.js:129:91 <- config/spec-bundle.js:72875:130
  27. at ZoneDelegate.invokeTask (webpack:///~/zone.js/dist/zone.js:275:0 <- config/spec-bundle.js:73512:35)
  28. at Zone.runTask (webpack:///~/zone.js/dist/zone.js:151:0 <- config/spec-bundle.js:73388:47)
  29. at drainMicroTaskQueue (webpack:///~/zone.js/dist/zone.js:433:0 <- config/spec-bundle.js:73670:35)
  30.  
  31. import { FormsModule, ReactiveFormsModule } from '@angular/forms';
  32. @NgModule({
  33. bootstrap: [ AppComponent ],
  34. declarations: [
  35. ...
  36. ],
  37. imports: [ // import Angular's modules
  38. ...
  39. BrowserModule,
  40. FormsModule,
  41. HttpModule,
  42. ReactiveFormsModule,
  43. ... ],
  44. providers: [ // expose our Services and Providers into Angular's dependency injection
  45. ENV_PROVIDERS,
  46. APP_PROVIDERS
  47. ],
  48. schemas: [
  49. CUSTOM_ELEMENTS_SCHEMA
  50. ]
  51. })
  52. export class AppModule {
  53. constructor() {}
  54. }
  55.  
  56. TestBed.configureTestingModule({
  57. imports: [ReactiveFormsModule, FormsModule],
  58. declarations: [ FormGroup, XXXXComponent ], // declare the test component
  59. });
  60.  
  61. fixture = TestBed.createComponent(XXXXComponent);
  62. comp = fixture.componentInstance;
  63. });
  64.  
  65. testing.TestBed.initTestEnvironment(
  66. browser.BrowserDynamicTestingModule,
  67. browser.platformBrowserDynamicTesting()
  68. );
  69.  
  70. "@angular/common": "~2.4.3",
  71. "@angular/compiler": "~2.4.3",
  72. "@angular/core": "~2.4.3",
  73. "@angular/forms": "~2.4.3",
  74. "@angular/http": "~2.4.3",
  75. "@angular/material": "2.0.0-beta.1",
  76. "@angular/platform-browser": "~2.4.3",
  77. "@angular/platform-browser-dynamic": "~2.4.3",
  78. "@angular/platform-server": "~2.4.3",
  79. "@angular/router": "~3.4.3",
  80. "karma": "^1.2.0",
  81. "karma-chrome-launcher": "^2.0.0",
  82. "karma-coverage": "^1.1.1",
  83. "karma-jasmine": "^1.0.2",
  84. "karma-remap-coverage": "^0.1.4",
  85. "karma-sourcemap-loader": "^0.3.7",
  86. "karma-webpack": "2.0.1",
  87. "webpack": "2.2.0",
  88. "webpack-dev-middleware": "^1.9.0",
  89. "webpack-dev-server": "2.2.0",
  90. "webpack-dll-bundles-plugin": "^1.0.0-beta.5",
  91. "webpack-md5-hash": "~0.0.5",
  92. "webpack-merge": "~2.4.0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement