本文整理汇总了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() {});
});
});
开发者ID:NullVoxPopuli,项目名称:emberclear,代码行数:7,代码来源:component-integration-test.ts
示例2: module
module('Unit | Service | identity', function(hooks) {
setupTest(hooks);
skip('can dump and reload', async function(assert) {
assert.expect(0);
});
});
开发者ID:NullVoxPopuli,项目名称:emberclear,代码行数:7,代码来源:service-unit-test.ts
示例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'));
});
});
开发者ID:NullVoxPopuli,项目名称:emberclear,代码行数:21,代码来源:acceptance-test.ts
示例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);
}));
开发者ID:NullVoxPopuli,项目名称:aeonvera-ui,代码行数:29,代码来源:user-logged-in-test.ts
示例5: module
module('a confirmation is received', function() {
skip('the message is shown, with successful confirmation', function() {});
});
开发者ID:NullVoxPopuli,项目名称:emberclear,代码行数:3,代码来源:-acceptance-test.ts
注:本文中的QUnit.skip函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论