当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript ember-qunit.skip函数代码示例

本文整理汇总了TypeScript中ember-qunit.skip函数的典型用法代码示例。如果您正苦于以下问题:TypeScript skip函数的具体用法?TypeScript skip怎么用?TypeScript skip使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了skip函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: visit

  // custom url mock
  Ember.$.mockjax({ url, responseText: payload, type: 'GET' });
  Ember.$.mockjax({ url: 'https://checkout.stripe.com/api/outer/manhattan?key=a', responseText: {}, type: 'GET' });

  // test start
  await visit(`/${event.get('domain')}/register/${event.get('id')}/${registration.get('id')}`);

  expect(currentRouteName()).to.equal('register.event-registration.show.index');
}

// skipped because for some reason the test is set up wrong,
// and loading the community registration route
// and also I don't know what StripeCheckout's deal is.
skip('can go back to add a competition', withChai(async expect => {
  await preExistingRegistration(expect);

  console.log(
    currentURL(),
    currentRouteName(),
    find('.small-12.columns p.left').html());

  await click(editButton);
  expect(currentRouteName()).to.equal('register.event-registration.show.edit.index');

  await click(topNavCompetitions);
  expect(currentRouteName()).to.equal('register.event-registration.show.edit.competitions');


}));
开发者ID:NullVoxPopuli,项目名称:aeonvera-ui,代码行数:29,代码来源:goes-back-to-add-stuff-test.ts

示例2: test

        item: 42
    });

    const { inputFormat } = this.setProperties({
        inputFormat: 'M/D/YY',
        outputFormat: 'MMMM D, YYYY',
        date: '5/3/10'
    });

    const { inputFormat: if2, outputFormat } = this.getProperties('inputFormat', 'outputFormat');

    const inputFormat2 = this.get('inputFormat');

    // render the component on the page
    this.render();
    assert.equal(this.$('.foo').text(), 'bar');
});

test('It can calculate the result', function(assert) {
    assert.expect(1);

    const subject = this.subject();

    subject.set('value', 'foo');
    assert.equal(subject.get('result'), 'bar');
});

skip('disabled test');

skip('disabled test', function(assert) { });
开发者ID:AdaskoTheBeAsT,项目名称:DefinitelyTyped,代码行数:30,代码来源:ember-qunit-tests.ts


注:本文中的ember-qunit.skip函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。