ks
karma-should
npm i karma-should
ks

karma-should

Use should.js with karma tests

by ruimarinho

1.0.0 (see all)License:MITTypeScript:Not Found
npm i karma-should
Readme

karma-should

Use should.js (2.0.2+) with karma tests.

Status

npm version

Installation

Install the package via npm:

$ npm install karma-should --save

Usage

Add should as part of frameworks property configuration of karma. In the following example, the testing framework mocha is also included although not required.

module.exports = function(config) {
  config.set({
    frameworks: ['mocha', 'should']
  });
};

By default, karma loads all plugins that are siblings to it and their name matches karma-* so no additional configuration is required.

Load karma and all should assertions will now available in the tests:

describe('karma tests with should', function() {
  var user = {
    name: 'foo'
  };

  it('should have a name', function() {
    user.should.have.property('name', 'foo');
  });
});

License

MIT

Downloads/wk

2.1K

GitHub Stars

0
No data available

LAST COMMIT

NaNyrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

0
No data available
VersionTagPublished
1.0.0
latest
7yrs ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate