blob: 16f93fef30952c39d3c6a50c633f7f38f7838c69 [file] [log] [blame]
/********************************************************************************
* Copyright (c) 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
********************************************************************************/
import { async } from '@angular/core/testing';
import { VersionInfo } from '@shared/components/version-info/version-info.component';
describe('VersionInfo', () => {
let component: VersionInfo;
beforeEach(async(() => {
}));
beforeEach(() => {
component = new VersionInfo();
});
it('should create', () => {
expect(component).toBeTruthy();
});
it('should call back', () => {
const currVersion: any = {
frontendVersion: '1.0',
backendVersion: '1.0',
dbVersion: '1.0',
};
(component as any).setVersionInfo(currVersion);
expect(component.currVersion).toBe(currVersion);
});
});