mirror of
https://github.com/element-hq/synapse.git
synced 2026-06-07 15:22:24 +00:00
Move room alias/id mapping logic from matrixService to modelService.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user