20 lines
372 B
JavaScript
20 lines
372 B
JavaScript
|
import createNightmare from './nightmare';
|
||
|
export default myCreateNightmare;
|
||
|
|
||
|
function myCreateNightmare() {
|
||
|
let nightmare = createNightmare();
|
||
|
nightmare.header('Accept-Language', 'en');
|
||
|
|
||
|
beforeAll(() => {
|
||
|
return nightmare
|
||
|
.waitForLogin();
|
||
|
});
|
||
|
|
||
|
afterAll(() => {
|
||
|
return nightmare
|
||
|
.end();
|
||
|
});
|
||
|
|
||
|
return nightmare;
|
||
|
}
|