Exemplo n.º 1
0
  it('should not render the environment variables tab and content if no environment variables are present', () => {
    triggerWithOptionsInfo(TriggerWithOptionsInfo.fromJSON({variables: [], materials: json.materials}));
    vm.initialize(triggerWithOptionsInfo());
    m.redraw();
    const headings = $root.find('.pipeline_options-heading li');

    expect(headings.length).toBe(1);
    expect(headings.get(0)).toContainText('Materials');
  });
Exemplo n.º 2
0
  beforeEach(() => {
    jasmine.Ajax.install();
    stubMaterialSearch(json.materials[0].fingerprint);

    triggerWithOptionsInfo = Stream(TriggerWithOptionsInfo.fromJSON(json));
    vm                     = new TriggerWithOptionsVM();
    vm.initialize(triggerWithOptionsInfo());
    mount(triggerWithOptionsInfo, vm);
  });
Exemplo n.º 3
0
  beforeEach(() => {
    [$root, root] = window.createDomElementForTest();
    jasmine.Ajax.install();
    stubMaterialSearch(json.materials[0].fingerprint);

    triggerWithOptionsInfo = Stream(TriggerWithOptionsInfo.fromJSON(json));
    vm                     = new TriggerWithOptionsVM();
    vm.initialize(triggerWithOptionsInfo());
    mount(triggerWithOptionsInfo, vm);
  });
Exemplo n.º 4
0
 beforeEach(() => {
   triggerWithOptionsInfo = TriggerWithOptionsInfo.fromJSON(json);
 });