- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
  
          Merged in feature/SHIBUI-707 (pull request #154)
        
    * SHIBUI-707 Implemented provider re-ordering Approved-by: Shibui Jenkins <shibui.jenkins@gmail.com> Approved-by: Ryan Mathis <rmathis@unicon.net>
- Loading branch information
      Showing
      15 changed files
      with
      410 additions
      and
      32 deletions.
    
  
  There are no files selected for viewing
        
          
            46 changes: 46 additions & 0 deletions
          
          46 
        
  ui/src/app/metadata/domain/component/preview-dialog.component.spec.ts
  
  
      
      
   
        
      
      
    
  
    
      This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| import { TestBed, ComponentFixture } from '@angular/core/testing'; | ||
| import { ReactiveFormsModule } from '@angular/forms'; | ||
| import { NoopAnimationsModule } from '@angular/platform-browser/animations'; | ||
| import { ViewChild, Component } from '@angular/core'; | ||
| import { Observable, of } from 'rxjs'; | ||
| import { PreviewDialogComponent } from './preview-dialog.component'; | ||
| import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; | ||
| import { NgbActiveModalStub } from '../../../../testing/modal.stub'; | ||
|  | ||
| @Component({ | ||
| template: `<preview-dialog></preview-dialog>` | ||
| }) | ||
| class TestHostComponent { | ||
| @ViewChild(PreviewDialogComponent) | ||
| public formUnderTest: PreviewDialogComponent; | ||
| } | ||
|  | ||
|  | ||
| describe('Advanced Info Form Component', () => { | ||
| let fixture: ComponentFixture<TestHostComponent>; | ||
| let instance: TestHostComponent; | ||
|  | ||
| beforeEach(() => { | ||
| TestBed.configureTestingModule({ | ||
| providers: [ | ||
| { provide: NgbActiveModal, useClass: NgbActiveModalStub } | ||
| ], | ||
| imports: [ | ||
| NoopAnimationsModule, | ||
| ReactiveFormsModule | ||
| ], | ||
| declarations: [ | ||
| PreviewDialogComponent, | ||
| TestHostComponent | ||
| ], | ||
| }); | ||
|  | ||
| fixture = TestBed.createComponent(TestHostComponent); | ||
| instance = fixture.componentInstance; | ||
| fixture.detectChanges(); | ||
| }); | ||
|  | ||
| it('should compile', () => { | ||
| expect(fixture).toBeDefined(); | ||
| }); | ||
| }); | 
  
    
      This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export interface ProviderOrder { | ||
| resourceIds: string[]; | ||
| } | 
  
    
      This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
  
    
      This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
  
    
      This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
  
    
      This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
  
    
      This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
  
    
      This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
  
    
      This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
      
      Oops, something went wrong.