mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
🚨 improve error handling in test env
no issue [ci skip]
This commit is contained in:
parent
b3bafa4ba8
commit
bdad235f6a
1 changed files with 5 additions and 1 deletions
|
@ -218,8 +218,8 @@ fixtures = {
|
|||
|
||||
overrideOwnerUser: function overrideOwnerUser(slug) {
|
||||
var user;
|
||||
|
||||
user = DataGenerator.forKnex.createUser(DataGenerator.Content.users[0]);
|
||||
|
||||
if (slug) {
|
||||
user.slug = slug;
|
||||
}
|
||||
|
@ -590,6 +590,10 @@ togglePermalinks = function togglePermalinks(request, toggle) {
|
|||
return reject(err);
|
||||
}
|
||||
|
||||
if (res.statusCode !== 200) {
|
||||
return reject(res.body);
|
||||
}
|
||||
|
||||
resolve(res.body);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue