You can not 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
389 B
12 lines
389 B
7 years ago
|
package main
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestConfig_ToURL(t *testing.T) {
|
||
|
exampleConfig := &Config{Identifier: "test", Key: "MYKEY"}
|
||
|
result := exampleConfig.ToURL()
|
||
|
if result != "https://api.crowdin.com/api/project/test/update-file?key=MYKEY" {
|
||
|
t.Fatalf("ToURL returns \"%s\" instead of the expected \"%s\"", result, "https://api.crowdin.com/api/project/test/update-file?key=MYKEY")
|
||
|
}
|
||
|
}
|