0.1.0 • Published 7 years ago

egg-hypnotize v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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