GitXplorerGitXplorer
U

jasmine-expect-count

public
4 stars
0 forks
3 issues

Commits

List of commits on branch master.
Unverified
d1ac408533e84a7b8ee09034796d4d5628e72adc

chore(deps): update semantic-release monorepo

rrenovate[bot] committed a year ago
Unverified
7d51c52a4d67148d9204108d0238b3de2a8e6f5f

chore(deps): update semantic-release monorepo

rrenovate[bot] committed a year ago
Unverified
6922e8cfb7df95be8431409cbd51d458801d4d50

chore(deps): update semantic-release monorepo

rrenovate[bot] committed a year ago
Unverified
d215bea43b1887e18f7e7dbb2068a32b36492c5a

chore(deps): update devdependency eslint to ^8.48.0

rrenovate[bot] committed a year ago
Unverified
3f80e0798497cc3b46948562ccea4af8dfbbe31e

chore(deps): update devdependency semantic-release to ^21.1.1

rrenovate[bot] committed a year ago
Unverified
d133808851af063c177efa4a0615c52eace29257

chore(deps): update devdependency semantic-release to ^21.1.0

rrenovate[bot] committed a year ago

README

The README file for this repository.

Actions Status

Jasmine Expect Count

Lets you specify the number of expects expected to be called.

Installing

Save jasmine-expect-count in devDependencies

npm install jasmine-expect-count --save-dev

then require it

require("jasmine-expect-count");

before your tests.

Using

Jasmine Expect Count allows you to specify the number of expects to be called in an it.

it("should call expect 3 times", function () {
  jasmine.expectCount(3);

  expect(1).toBe(1);

  const p = new Promise(function (resolve) {
    setTimeout(function () {
      expect(2).toBe(2);
      resolve();
    }, 1);
  });

  expect(3).toBe(3);

  // if returning p is forgotten only 2 expects will be called.
  return p;
});