Fill in more of reg for other people to test with (cherry pick to run
tests, to delete after rebase main when fix-remote-join is merged)
This commit is contained in:
		
							parent
							
								
									9492137ca6
								
							
						
					
					
						commit
						677d899a92
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -24,3 +24,7 @@ test("api path: real world mxid", t => {
 | 
			
		|||
test("api path: extras number works", t => {
 | 
			
		||||
	t.equal(path(`/client/v3/rooms/!example/timestamp_to_event`, null, {ts: 1687324651120}), "/client/v3/rooms/!example/timestamp_to_event?ts=1687324651120")
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
test("api path: multiple via params", t => {
 | 
			
		||||
	t.equal(path(`/client/v3/rooms/!example/join`, null, {via: ["cadence.moe", "matrix.org"], ts: 1687324651120}), "/client/v3/rooms/!example/join?via=cadence.moe&via=matrix.org&ts=1687324651120")
 | 
			
		||||
})
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,6 +17,8 @@ const {reg} = require("../src/matrix/read-registration")
 | 
			
		|||
reg.ooye.discord_token = "Njg0MjgwMTkyNTUzODQ0NzQ3.Xl3zlw.baby"
 | 
			
		||||
reg.ooye.server_origin = "https://matrix.cadence.moe" // so that tests will pass even when hard-coded
 | 
			
		||||
reg.ooye.server_name = "cadence.moe"
 | 
			
		||||
reg.ooye.namespace_prefix = "_ooye_"
 | 
			
		||||
reg.sender_localpart = "_ooye_bot"
 | 
			
		||||
reg.id = "baby"
 | 
			
		||||
reg.as_token = "don't actually take authenticated actions on the server"
 | 
			
		||||
reg.hs_token = "don't actually take authenticated actions on the server"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue