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