qunit-ava-spec
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

QUnit AVA Spec

Helper functions for using QUnit as if it was ava/ava-spec.

Install

npm install --save-dev qunit-ava-spec

Usage

Load it after having loaded QUnit:

<script src="./node_modules/qunit-ava-spec/dist/index.js"></script>

Then use it like you would use ava:

test ( 'Foo', t => {
  t.is ( true, false );
});

Or ava-spec:

describe ( 'Foo', it => {
  it ( 'does something useful', t => {
    t.true ( false );
  });
});

If you need hooks you can pass them as a second optional argument to describe.

License

MIT © Fabio Spampinato

Package Sidebar

Install

npm i qunit-ava-spec

Weekly Downloads

1

Version

2.0.0

License

none

Unpacked Size

5.3 kB

Total Files

8

Last publish

Collaborators

  • fabiospampinato