javascript - toMatch Not Working -


Does anyone know why this is not passing?

  function correctly caller display (Messages, player_ turn, selector) {if ((Message & gt; 0) & amp; amp; amp; (player_turn! = 0)) {return $ ( selector) .append ( "& lt; li & gt;" + message + "" + "color present but not in the correct position in the round" + player_turn + ". & Lt; / li & gt;"); Jasin:  
  description ( '# do not expect the caller display', function () ((If a user message to be displayed in the correct color (selector) (not working) , Liability of the work () {var message = 2 var playerTurn = 2 var selector = $ ('
  • The "+ Message +" "+" color is present, but the goal is not in the correct position in "+ + On + Play +". ")});});
  • The error that I get is This is a huge message: expected {0: HTMLNode, length: 1, jquery: '1.11.0', constructor: function, selector: '', tore: function, pushstock: function, each, etc. (this goes on too much time a)

    If you have a regular expression (which is basically just a string in this case) Trying to match a newly created HTMLNode.

    Jasmine's toMatch function is for regular expressions.

    I am not fully familiar with Jasmine, but I am feeling that you are looking for something:

      Description ('# correct' color display, function) (this ('right If the color was not selected (not on posts), then the user displaying a message ', the function () {var message = 2; Var playerTurn = 2; Var selector = $ ('
  • & lt; / li & gt;'); Selector = Right Prediction (message, player, current, selector); Expect (selector). ($ ("(Lt; li>
  • " + Message + "" + "color is present, but not in the correct position in round" + Player On ". & Lt; / li & gt; ; & Lt; / li & gt; "));}); });
  • If that does not work, then I suggest that you see in


    Comments

    Popular posts from this blog

    import - Python ImportError: No module named wmi -

    Editing Python Class in Shell and SQLAlchemy -

    c# - MySQL Parameterized Select Query joining tables issue -