aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/components/model-information/model-information.spec.ts
blob: cdba11f59e80b66b86fb968bca717b1cc66b554b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import {ModelInformationItem} from "./model-information.component";

describe('ModelInformationItem', () => {
  test('when use createInstance, values initialized as expected', () =>{
    const modelInformationItem:ModelInformationItem = ModelInformationItem.createInstance("aStr", 4);
    expect(modelInformationItem.label).toEqual("aStr");
    expect(modelInformationItem.testsId).toEqual("aStr");
    expect(modelInformationItem.values).toEqual([4]);
    expect(modelInformationItem.mandatory).toBeFalsy();
    expect(modelInformationItem.toolTipText).toEqual("");
  });
});