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
thrownewGraphClientError("Please add only hostnames to the CustomHosts config");
115
+
/**
116
+
* Throws error if the string is not a valid host/hostname and contains other url parts.
117
+
* @param {string} url - The host to be verified
118
+
*/
119
+
constisCustomHostValid=(host: string)=>{
120
+
if(host.indexOf("/")!==-1){
121
+
thrownewGraphClientError("Please add only hosts or hostnames to the CustomHosts config. If the url is `http://example.com:3000/`, host is `example:3000`");
thrownewError("Test fails - Error expected when custom host is not valid");
203
+
}catch(error){
204
+
assert.isDefined(error);
205
+
assert.isDefined(error.message);
206
+
assert.equal(error.message,"Please add only hosts or hostnames to the CustomHosts config. If the url is `http://example.com:3000/`, host is `example:3000`");
0 commit comments