diff options
Diffstat (limited to 'browserenv_unix_test.go')
-rw-r--r-- | browserenv_unix_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/browserenv_unix_test.go b/browserenv_unix_test.go index 35af81c..f49444e 100644 --- a/browserenv_unix_test.go +++ b/browserenv_unix_test.go @@ -21,6 +21,18 @@ func TestBrowserCommand(t *testing.T) { "https://duckduckgo.com", "open -a Firefox 'https://duckduckgo.com'", }, + { + "with URL directive at end", + "open -a Firefox %s", + "https://duckduckgo.com", + "open -a Firefox https://duckduckgo.com", + }, + { + "with URL directive in middle", + "open -a Firefox %s --other-arg", + "https://duckduckgo.com", + "open -a Firefox https://duckduckgo.com --other-arg", + }, } for _, test := range tests { |