Move room alias/id mapping logic from matrixService to modelService.

This commit is contained in:
Kegan Dougal 2014-11-12 11:14:19 +00:00
parent 33e9e0fb2d
commit 9d0efedaee
7 changed files with 72 additions and 74 deletions

View file

@ -8,10 +8,6 @@ describe('mRoomName filter', function() {
// mocked services which return the test values above.
var matrixService = {
getRoomIdToAliasMapping: function(room_id) {
return testAlias;
},
config: function() {
return {
user_id: testUserId
@ -33,7 +29,11 @@ describe('mRoomName filter', function() {
return {
current_room_state: testRoomState
};
}
},
getRoomIdToAliasMapping: function(room_id) {
return testAlias;
},
};
beforeEach(function() {