本文整理汇总了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');
}));
示例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) { });