mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-30 09:56:23 -07:00
Update tests
This commit is contained in:
parent
92fb3bdb1f
commit
6aa021b7b0
2 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ func TestBuildJS(t *testing.T) {
|
|||
func mockSetupBoards(mock sqlmock.Sqlmock) {
|
||||
mock.ExpectPrepare(`SELECT\s*` +
|
||||
`boards.id, section_id, uri, dir, navbar_position, title, subtitle, description,\s*` +
|
||||
`max_file_size, max_threads, default_style, locked, created_at, anonymous_name, force_anonymous,\s*` +
|
||||
`max_file_size, max_threads, default_style, boards\.locked, created_at, anonymous_name, force_anonymous,\s*` +
|
||||
`autosage_after, no_images_after, max_message_length, min_message_length, allow_embeds, redirect_to_thread,\s*` +
|
||||
`require_file, enable_catalog\s*` +
|
||||
`FROM boards\s*` +
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
|
||||
const (
|
||||
selectBoardsQueryExpectation = `SELECT\s+boards\.id, section_id,\s*uri,\s*dir,\s*navbar_position,\s*title,\s*` +
|
||||
`subtitle,\s*description,\s*max_file_size,\s*max_threads,\s*default_style,\s*locked,\s*created_at,\s*` +
|
||||
`subtitle,\s*description,\s*max_file_size,\s*max_threads,\s*default_style,\s*boards\.locked,\s*created_at,\s*` +
|
||||
`anonymous_name,\s*force_anonymous,\s*autosage_after,\s*no_images_after,\s*max_message_length,\s*` +
|
||||
`min_message_length,\s*allow_embeds,\s*redirect_to_thread,\s*require_file,\s*enable_catalog\s+` +
|
||||
`FROM boards\s+INNER JOIN\s*\(\s*SELECT id,\s*hidden\s+FROM sections\s*\)\s+s\s+ON ` +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue