mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 04:43:59 +01:00
use backticks to avoid backslash
This commit is contained in:
parent
e11dcc60f2
commit
34212791ee
1 changed files with 2 additions and 2 deletions
|
@ -52,11 +52,11 @@ func TestLinkAccountChoose(t *testing.T) {
|
|||
assert.Equal(t, resp.Code, http.StatusOK, resp.Body)
|
||||
doc := NewHTMLParser(t, resp.Body)
|
||||
|
||||
class, exists := doc.Find(".new-menu-inner .item[data-tab=\"auth-link-signup-tab\"]").Attr("class")
|
||||
class, exists := doc.Find(`.new-menu-inner .item[data-tab="auth-link-signup-tab"]`).Attr("class")
|
||||
assert.True(t, exists, resp.Body)
|
||||
assert.Equal(t, testCase.signupTab, class)
|
||||
|
||||
class, exists = doc.Find(".new-menu-inner .item[data-tab=\"auth-link-signin-tab\"]").Attr("class")
|
||||
class, exists = doc.Find(`.new-menu-inner .item[data-tab="auth-link-signin-tab"]`).Attr("class")
|
||||
assert.True(t, exists)
|
||||
assert.Equal(t, testCase.signinTab, class)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue