mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	fix(test): one more broken test
This commit is contained in:
		
							parent
							
								
									2b966afbe1
								
							
						
					
					
						commit
						c27f13d49f
					
				| @ -27,7 +27,7 @@ describe("Share API test", () => { | |||||||
|     it("requests password for password-protected share", async () => { |     it("requests password for password-protected share", async () => { | ||||||
|         await supertest(app) |         await supertest(app) | ||||||
|             .get("/share/YjlPRj2E9fOV") |             .get("/share/YjlPRj2E9fOV") | ||||||
|             .expect(200) |             .expect(401) | ||||||
|             .expect("WWW-Authenticate", 'Basic realm="User Visible Realm", charset="UTF-8"'); |             .expect("WWW-Authenticate", 'Basic realm="User Visible Realm", charset="UTF-8"'); | ||||||
|         expect(cannotSetHeadersCount).toBe(0); |         expect(cannotSetHeadersCount).toBe(0); | ||||||
|     }); |     }); | ||||||
|  | |||||||
| @ -216,7 +216,6 @@ function register(router: Router) { | |||||||
| 
 | 
 | ||||||
|         const { shareId } = req.params; |         const { shareId } = req.params; | ||||||
| 
 | 
 | ||||||
|         console.log("Got share ", shareId, shaca.notes, shaca.aliasToNote); |  | ||||||
|         const note = shaca.aliasToNote[shareId] || shaca.notes[shareId]; |         const note = shaca.aliasToNote[shareId] || shaca.notes[shareId]; | ||||||
| 
 | 
 | ||||||
|         renderNote(note, req, res); |         renderNote(note, req, res); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran