0
Fork 0
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:
kirrg001 2016-09-13 18:23:02 +02:00 committed by Hannah Wolfe
parent b3bafa4ba8
commit bdad235f6a

View file

@ -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);
});
});