Skip to content

Commit

Permalink
test: refactor tests and update CI configurations
Browse files Browse the repository at this point in the history
- Change the CORS test to only check for an error instead of matching the exact error message

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Mar 6, 2024
1 parent eac6c48 commit d5002f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func TestValidateTauri(t *testing.T) {
AllowBrowserExtensions: true,
}
err := c.Validate()
assert.Equal(t, err.Error(), "bad origin: origins must contain '*' or include http://,https://,chrome-extension://,safari-extension://,moz-extension://,ms-browser-extension://")
assert.Error(t, err)

c = Config{
AllowOrigins: []string{"tauri://localhost:1234"},
Expand Down

0 comments on commit d5002f2

Please sign in to comment.