mirror of
				https://github.com/usememos/memos.git
				synced 2025-11-04 22:12:10 +08:00 
			
		
		
		
	chore: fix tests
This commit is contained in:
		
							parent
							
								
									2dc7766fd0
								
							
						
					
					
						commit
						2aaaef79f7
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -26,7 +26,7 @@ func TestRestoreExprToSQL(t *testing.T) {
 | 
			
		|||
		},
 | 
			
		||||
		{
 | 
			
		||||
			filter: `content.contains("memos")`,
 | 
			
		||||
			want:   "memo.content ILIKE LIKE $1",
 | 
			
		||||
			want:   "memo.content ILIKE $1",
 | 
			
		||||
			args:   []any{"%memos%"},
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
| 
						 | 
				
			
			@ -46,7 +46,7 @@ func TestRestoreExprToSQL(t *testing.T) {
 | 
			
		|||
		},
 | 
			
		||||
		{
 | 
			
		||||
			filter: `tag in ['tag1'] || content.contains('hello')`,
 | 
			
		||||
			want:   "(memo.payload->'tags' @> $1::jsonb OR memo.content ILIKE LIKE $2)",
 | 
			
		||||
			want:   "(memo.payload->'tags' @> $1::jsonb OR memo.content ILIKE $2)",
 | 
			
		||||
			args:   []any{[]any{"tag1"}, "%hello%"},
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue