You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expect(res.body).deep.equal({success: true,msg: `Thanks for the registration. It worked. When the resource updates we\'ll notify you. Don\'t forget to re-register after 24 hours, your subscription will expire in 25. Keep on truckin!`});
317
+
}else{
318
+
expect(res.text).xml.equal('<notifyResult success="true" msg="Thanks for the registration. It worked. When the resource updates we\'ll notify you. Don\'t forget to re-register after 24 hours, your subscription will expire in 25. Keep on truckin!"/>');
319
+
}
320
+
}
321
+
322
+
expect(mock.requests.GET).property(feedPath).lengthOf(1,`Missing GET ${feedPath}`);
323
+
expect(mock.requests.GET).property(pingPath).lengthOf(1,`Missing GET ${pingPath}`);
324
+
});
325
+
326
+
it('should accept a pleaseNotify without domain for a redirected subscriber',asyncfunction(){
expect(res.body).deep.equal({success: true,msg: `Thanks for the registration. It worked. When the resource updates we\'ll notify you. Don\'t forget to re-register after 24 hours, your subscription will expire in 25. Keep on truckin!`});
367
+
}else{
368
+
expect(res.text).xml.equal('<notifyResult success="true" msg="Thanks for the registration. It worked. When the resource updates we\'ll notify you. Don\'t forget to re-register after 24 hours, your subscription will expire in 25. Keep on truckin!"/>');
369
+
}
370
+
}
371
+
372
+
expect(mock.requests.GET).property(feedPath).lengthOf(1,`Missing GET ${feedPath}`);
373
+
expect(mock.requests.POST).property(pingPath).lengthOf(1,`Missing POST ${pingPath}`);
0 commit comments