jzhzhz / egg-hypnotize

egg.js plugin of hypnotize

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

egg-hypnotize

Greenkeeper badge 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

About

egg.js plugin of hypnotize

License:MIT License


Languages

Language:JavaScript 100.0%