Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. Can't bind to 'dragula' since it isn't a known property of 'div'. ("
  2. </div>
  3. <div *ngIf="showChildren"
  4. [ERROR ->][dragula]='"bag-units"'
  5. [dragulaOptions]="unitsOptions">
  6.  
  7. <div *ngIf="showChildren"
  8. [dragula]='"bag-units"'
  9. [dragulaOptions]="unitsOptions">
  10. <sn-unit *ngFor="let unit of units" [unit]="unit"></sn-unit>
  11. </div>
  12.  
  13. import { async, ComponentFixture, TestBed } from '@angular/core/testing';
  14. // more imports removed for code example
  15.  
  16. @Component({
  17. selector: 'sn-unit',
  18. template: '<div> Unit {{ unit | json}}</div>'
  19. })
  20. class TestUnitComponent {
  21. @Input() unit: any;
  22. }
  23.  
  24. import { LevelComponent } from './level.component';
  25.  
  26. describe('LevelComponent', () => {
  27. let cut: LevelComponent;
  28. let fixture: ComponentFixture<LevelComponent>;
  29. let element: DebugElement;
  30.  
  31. beforeEach(async(() => {
  32. TestBed.configureTestingModule({
  33. declarations: [
  34. LevelComponent,
  35. TestUnitComponent
  36. ]
  37. })
  38. .compileComponents();
  39. }));
  40.  
  41. beforeEach(() => {
  42. fixture = TestBed.createComponent(LevelComponent);
  43. cut = fixture.componentInstance;
  44. element = fixture.debugElement;
  45. cut.level = returnXMLdoc('level')[0];
  46. fixture.detectChanges();
  47. });
  48.  
  49. it('should create an instance', () => {
  50.  
  51. assertThat(cut, is(truthy()));
  52. });
  53.  
  54. // more tests here...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement