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

/egg-hypnotize/

    Package Sidebar

    Install

    npm i egg-hypnotize

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • gerhut