Explorar el Código

fixing false positive with RNG state 0bc96fe3b8d170254a

El RIDO hace 8 años
padre
commit
cbcc26ec37
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      js/test.js

+ 6 - 0
js/test.js

@@ -802,6 +802,12 @@ describe('Model', function () {
                 id = id.join('');
                 element = element.join('');
                 value = value.join('').trim();
+
+                // <br> tags can't contain strings, so test with a <p> instead
+                if (element == 'br') {
+                    element = 'p';
+                }
+
                 $('body').html(
                     '<div id="templates"><' + element + ' id="' + id +
                     'template">' + value + '</' + element + '></div>'