Removed buildUrl() helper for automatically adding ely.by domain to skin. Now it's universtal

This commit is contained in:
ErickSkrauch
2018-02-01 22:58:34 +03:00
parent caebac1753
commit 6192a58f63
5 changed files with 3 additions and 20 deletions

View File

@@ -16,12 +16,6 @@ func TestParseUsername(t *testing.T) {
assert.Equal("test", parseUsername("test"), "Function should return string itself, if it not contains .png at end")
}
func TestBuildElyUrl(t *testing.T) {
assert := testify.New(t)
assert.Equal("http://ely.by/route", buildElyUrl("/route"), "Function should add prefix to the provided relative url.")
assert.Equal("http://ely.by/test/route", buildElyUrl("http://ely.by/test/route"), "Function should do not add prefix to the provided prefixed url.")
}
type mocks struct {
Skins *mock_interfaces.MockSkinsRepository
Capes *mock_interfaces.MockCapesRepository