Quellcode durchsuchen

Fix failing test

JC Brand vor 7 Jahren
Ursprung
Commit
71c12c385a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      spec/chatroom.js

+ 1 - 1
spec/chatroom.js

@@ -1716,7 +1716,7 @@
                     );
                     $occupants = $(view.el.querySelector('.occupant-list'));
                     expect($occupants.children().length).toBe(1);
-                    expect($occupants.children().first(0).text()).toBe("newnick");
+                    expect($occupants.children().find('.occupant-nick').first(0).text()).toBe("newnick");
                     done();
                 });
             }));