Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 779 Bytes

no-pending-tests.md

File metadata and controls

35 lines (24 loc) · 779 Bytes

Disallow use of pending tests (no-pending-tests)

Jasmine uses pending ("pending specs") to mark a spec as not implemented yet.

pending should only be used when creating a test suite skeleton.

Rule details

This rule triggers a warning (is set to 1 by default) whenever it encounters pending.

The following patterns are considered warnings:

it('My pending spec', function() { pending('I am pending'); });

describe('My suite', function() {
  it('My pending spec', function() {
    pending('I am pending');
  });
});

The following patterns are not warnings:

it('My spec', function() {});

describe('My suite', function() {
  it('My spec', function() {});
});