當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript QUnit.skip函數代碼示例

本文整理匯總了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;未經允許,請勿轉載。