0.1.0 • Published 7 years ago
egg-hypnotize v0.1.0
egg-hypnotize
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
0.1.0
7 years ago