Przeglądaj źródła

Moving validation tests to new snippet server

David Catuhe 6 lat temu
rodzic
commit
98f1c3eea0
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      tests/validation/validation.js

+ 2 - 2
tests/validation/validation.js

@@ -232,7 +232,7 @@ function runTest(index, done) {
             return;
         }
 
-        var snippetUrl = "//babylonjs-api2.azurewebsites.net/snippets";
+        var snippetUrl = "https://babylonsnippetsv3.azurewebsites.net/api/snippets";
         var pgRoot = "/Playground"
 
         var retryTime = 500;
@@ -258,7 +258,7 @@ function runTest(index, done) {
                 if (xmlHttp.readyState === 4) {
                     try {
                         xmlHttp.onreadystatechange = null;
-                        var snippet = JSON.parse(xmlHttp.responseText)[0];
+                        var snippet = JSON.parse(xmlHttp.responseText);
                         var code = JSON.parse(snippet.jsonPayload).code.toString();
                         code = code.replace(/\/textures\//g, pgRoot + "/textures/");
                         code = code.replace(/"textures\//g, "\"" + pgRoot + "/textures/");