aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-03 20:13:40 -0400
committerCash Costello <cash.costello@gmail.com>2011-11-03 20:13:40 -0400
commit3a75f6eda19e786d903cfda3a432e98a6c633f9d (patch)
treea7f8e9bb2a0736e7c2e638de61b123a632df94d7 /js
parent7f8b7adeb346c8d07e2da4b72e9f78e8ffcb82b9 (diff)
downloadelgg-3a75f6eda19e786d903cfda3a432e98a6c633f9d.tar.gz
elgg-3a75f6eda19e786d903cfda3a432e98a6c633f9d.tar.bz2
Refs #4051 fixed bad unit test for ElggPriorityList.insert
Diffstat (limited to 'js')
-rw-r--r--js/tests/ElggPriorityListTest.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tests/ElggPriorityListTest.js b/js/tests/ElggPriorityListTest.js
index 2549e0ee0..2329a8490 100644
--- a/js/tests/ElggPriorityListTest.js
+++ b/js/tests/ElggPriorityListTest.js
@@ -15,7 +15,7 @@ ElggPriorityListTest.prototype.testInsert = function() {
this.list.insert('bar', 501);
- assertEquals('foo', this.list.priorities_[501][0]);
+ assertEquals('bar', this.list.priorities_[501][0]);
};
ElggPriorityListTest.prototype.testInsertRespectsPriority = function() {
@@ -25,9 +25,9 @@ ElggPriorityListTest.prototype.testInsertRespectsPriority = function() {
this.list.insert(values[i], values[i]);
}
- this.list.forEach(function(elem, idx)) {
+ this.list.forEach(function(elem, idx) {
assertEquals(elem, idx);
- }
+ })
};
ElggPriorityListTest.prototype.testInsertHandlesDuplicatePriorities = function() {