本文整理汇总了TypeScript中QUnit.skip函数的典型用法代码示例。如果您正苦于以下问题:TypeScript skip函数的具体用法?TypeScript skip怎么用?TypeScript skip使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了skip函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: module
module('when open', function() {
skip('the content is visible', function() {});
module('clicking the collapse icon', function() {
skip('hides the content', function() {});
});
});
示例2: module
module('Unit | Service | identity', function(hooks) {
setupTest(hooks);
skip('can dump and reload', async function(assert) {
assert.expect(0);
});
});
示例3: module
module('name field changes to some other text', function(hooks) {
const newName = 'whatever, this is a test or something';
hooks.beforeEach(async function() {
await settings.fillNameField(newName);
await settings.save();
});
test('the name has changed', function(assert) {
const service = getService<CurrentUserService>('currentUser');
const actual = service.name;
assert.equal(actual, newName);
});
skip('confirmation is display', function(assert) {
const text = app.toast()!.textContent!;
assert.ok(text.includes('Identity Updated'));
});
});
示例4: find
// because we don't know how long it'll be before the dom is evaluated
const timeTags = find('h2 span').text();
const timeLeft = timeTags.includes('seconds') || timeTags.includes('minutes') || timeTags.includes('day');
expect(timeLeft).to.equal(true);
}));
skip('shows the form once the contdown has completed', withChai(async expect => {
const yesterday = moment().subtract(1, 'days').toDate();
const event = await setup();
const domain = event.get('domain');
await visit(`/${domain}`);
const loader = find('.ubuntu-loader');
expect(loader.length).to.equal(1);
event.set('registrationOpensAt', yesterday);
event.notifyPropertyChange('registrationIsOpen');
// give the run loop and dom time to update (2 seconds is way more than enough)
// setTimeout(() => {
const h2s = find('h2');
const text = h2s.text();
expect(text).to.include(`Register for ${event.get('name')}`);
// }, 2000);
}));
示例5: module
module('a confirmation is received', function() {
skip('the message is shown, with successful confirmation', function() {});
});