From 1f6c271b3bedd6656ae7155714423b1b39a669c1 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 16 May 2018 13:43:22 -0400 Subject: MM-8708 Remove api package (#8784) * Remove api package * Remove api dependency from cmd package * Remove EnableAPIv3 setting * Update web tests * Add more websocket tests * Move some ws and oauth tests to api4 package * Move command tests into api4 package * Test fixes * Fix msg command test * Add some app file tests --- api/context_test.go | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 api/context_test.go (limited to 'api/context_test.go') diff --git a/api/context_test.go b/api/context_test.go deleted file mode 100644 index 95a8459ff..000000000 --- a/api/context_test.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -package api - -import ( - "testing" -) - -func TestSiteURLHeader(t *testing.T) { - c := &Context{} - - testCases := []struct { - url string - want string - }{ - {"http://mattermost.com/", "http://mattermost.com"}, - {"http://mattermost.com", "http://mattermost.com"}, - } - - for _, tc := range testCases { - c.SetSiteURLHeader(tc.url) - - if c.siteURLHeader != tc.want { - t.Fatalf("expected %s, got %s", tc.want, c.siteURLHeader) - } - } - -} -- cgit v1.2.3-1-g7c22