5dfc3364d1
* Load CSS in PhantomJS * Allow to take screenshot in PhantomJS while running tests For that, one need to run this call: window.top.callPhantom({'render': 'screenshot.png'}); * Make PhantomJS serve images * Bonus: those tests now passe in Phantom too * Add helper to make screenshot in tests takeScreenshot(); or takeScreenshot('path/to/screenshot.png');
21 lines
320 B
Plaintext
21 lines
320 B
Plaintext
{
|
|
"rules": {
|
|
"no-unused-vars": 0,
|
|
"quotes": 0,
|
|
"no-shadow": 0,
|
|
"no-irregular-whitespace": 0,
|
|
"no-console": 0,
|
|
"no-extend-native": 0
|
|
},
|
|
"env": {
|
|
"mocha": true
|
|
},
|
|
"globals": {
|
|
"expect": false,
|
|
"sinon": false,
|
|
"happen": false,
|
|
"Hand": false,
|
|
"takeScreenshot"
|
|
}
|
|
}
|