Moved highestSeenByTopic to the Discourse.Session

This commit is contained in:
Robin Ward
2013-07-26 15:18:46 -04:00
parent 894dc2c6fd
commit e77ee1eaa8
5 changed files with 15 additions and 6 deletions

View File

@ -13,4 +13,11 @@ test('current', function(){
Discourse.Session.current('orange', 'juice');
equal(session.get('orange'), "juice", "it can be updated");
});
test('highestSeenByTopic', function() {
var session = Discourse.Session.current();
deepEqual(session.get('highestSeenByTopic'), {}, "by default it returns an empty object");
});