本文整理匯總了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() {});
});