Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

Gerhut/egg-hypnotize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published