"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/app/shared/menu/menu-item/link-menu-item.component.spec.ts" between
dspace-angular-dspace-7.0.tar.gz and dspace-angular-dspace-7.1.tar.gz

About: dspace-angular is the Angular-based frontend of DSpace, a digital repository system to capture, store, index, preserve and redistribute an organization’s research material in digital formats.

link-menu-item.component.spec.ts  (dspace-angular-dspace-7.0):link-menu-item.component.spec.ts  (dspace-angular-dspace-7.1)
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { TranslateModule } from '@ngx-translate/core'; import { TranslateModule } from '@ngx-translate/core';
import { DebugElement, NO_ERRORS_SCHEMA } from '@angular/core'; import { DebugElement, NO_ERRORS_SCHEMA } from '@angular/core';
import { By } from '@angular/platform-browser'; import { By } from '@angular/platform-browser';
import { LinkMenuItemComponent } from './link-menu-item.component'; import { LinkMenuItemComponent } from './link-menu-item.component';
import { RouterLinkDirectiveStub } from '../../testing/router-link-directive.stu b'; import { RouterLinkDirectiveStub } from '../../testing/router-link-directive.stu b';
import { environment } from '../../../../environments/environment'; import { environment } from '../../../../environments/environment';
import { RouterStub } from '../../testing/router.stub';
import { Router } from '@angular/router';
describe('LinkMenuItemComponent', () => { describe('LinkMenuItemComponent', () => {
let component: LinkMenuItemComponent; let component: LinkMenuItemComponent;
let fixture: ComponentFixture<LinkMenuItemComponent>; let fixture: ComponentFixture<LinkMenuItemComponent>;
let debugElement: DebugElement; let debugElement: DebugElement;
let text; let text;
let link; let link;
function init() { function init() {
text = 'HELLO'; text = 'HELLO';
link = 'http://google.com'; link = 'http://google.com';
} }
beforeEach(waitForAsync(() => { beforeEach(waitForAsync(() => {
init(); init();
TestBed.configureTestingModule({ TestBed.configureTestingModule({
imports: [TranslateModule.forRoot()], imports: [TranslateModule.forRoot()],
declarations: [LinkMenuItemComponent, RouterLinkDirectiveStub], declarations: [LinkMenuItemComponent, RouterLinkDirectiveStub],
providers: [ providers: [
{ provide: 'itemModelProvider', useValue: { text: text, link: link } }, { provide: 'itemModelProvider', useValue: { text: text, link: link } },
{ provide: Router, useValue: RouterStub },
], ],
schemas: [NO_ERRORS_SCHEMA] schemas: [NO_ERRORS_SCHEMA]
}) })
.compileComponents(); .compileComponents();
})); }));
beforeEach(() => { beforeEach(() => {
fixture = TestBed.createComponent(LinkMenuItemComponent); fixture = TestBed.createComponent(LinkMenuItemComponent);
component = fixture.componentInstance; component = fixture.componentInstance;
debugElement = fixture.debugElement; debugElement = fixture.debugElement;
 End of changes. 2 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)