diff --git a/notes.md b/notes.md index 1c7584d..2377b74 100644 --- a/notes.md +++ b/notes.md @@ -12,13 +12,4 @@ filter updateSortData - -layoutComplete test after - filter - hide some - filter - reveal some, some stay hidden, some are revealed, some do nothing - sort - filter, during transition filter again - - - ## bugs diff --git a/test/get-sort-data.js b/test/get-sort-data.js index 891f864..ce6091f 100644 --- a/test/get-sort-data.js +++ b/test/get-sort-data.js @@ -8,7 +8,8 @@ test( 'getSortData', function() { ninjaTurtle: '[data-ninja-turtle]', fruit: 'span.fruit', b: 'b parseFloat', - i: 'i parseInt' + i: 'i parseInt', + bbroke: 'b foobar' } }); @@ -18,5 +19,6 @@ test( 'getSortData', function() { equal( item.sortData.fruit, 'watermelon', 'query selector shorthand' ); equal( item.sortData.b, 3.14, 'parseFloat parser' ); equal( item.sortData.i, 42, 'parseInt parser' ); + equal( item.sortData.bbroke, '3.14', 'default nonparser' ); }); diff --git a/test/index.html b/test/index.html index ccdc4a1..c8b19c0 100644 --- a/test/index.html +++ b/test/index.html @@ -29,6 +29,7 @@ +
@@ -59,5 +60,19 @@ +