egg-hypnotize

0.1.0 • Public • Published

egg-hypnotize

Build Status dependencies Status devDependencies Status

egg.js plugin of hypnotize

Install

$ npm install --save-dev egg-hypnotize

Use

Add following to plugin.unittest.js

exports.hypnotize = {
    enable: true,
    package: 'egg-hypnotize',
};

Now you can use hypnotize in your unit test

it('title of `/foo` should be "Foo"', function* () {
    const title = yield app.hypnotize()
        .goto('/foo')
        .title()
        .end();
    assert(title === 'Foo');
});

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2

Package Sidebar

Install

npm i egg-hypnotize

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • gerhut