mirror of https://github.com/usememos/memos
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
292 B
Go
12 lines
292 B
Go
package mysql
|
|
|
|
import "testing"
|
|
|
|
func TestDeleteUserSettingKeysQueryQuotesReservedKey(t *testing.T) {
|
|
got := deleteUserSettingKeysQuery()
|
|
want := "SELECT `key` FROM `user_setting` WHERE user_id = ?"
|
|
if got != want {
|
|
t.Fatalf("deleteUserSettingKeysQuery() = %q, want %q", got, want)
|
|
}
|
|
}
|