Add tests for all room privacy levels
This commit is contained in:
		
							parent
							
								
									a1710af542
								
							
						
					
					
						commit
						1ad1c6b525
					
				
					 3 changed files with 32 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -44,6 +44,9 @@ module.exports = {
 | 
			
		|||
			"m.room.power_levels/": {
 | 
			
		||||
				events: {
 | 
			
		||||
					"m.room.avatar": 0
 | 
			
		||||
				},
 | 
			
		||||
				users: {
 | 
			
		||||
					"@test_auto_invite:example.org": 100
 | 
			
		||||
				}
 | 
			
		||||
			},
 | 
			
		||||
			"chat.schildi.hide_ui/read_receipts": {hidden: true},
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,6 +14,7 @@ const db = new sqlite(":memory:")
 | 
			
		|||
 | 
			
		||||
const reg = require("../matrix/read-registration")
 | 
			
		||||
reg.ooye.server_origin = "https://matrix.cadence.moe" // so that tests will pass even when hard-coded
 | 
			
		||||
reg.ooye.invite = ["@test_auto_invite:example.org"]
 | 
			
		||||
 | 
			
		||||
const sync = new HeatSync({watchFS: false})
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue