aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-11-30 11:25:53 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-12-14 17:03:35 +0100
commit42b5ea685c8ee46cf05625879300aa3eb3529897 (patch)
tree80a8d137148baf376888fe2092875ea6682a0516 /server/sonar-web/src/main/js/app
parentc4b2c3d7050c3639ec7672e1ba8b6dd266bd59dc (diff)
downloadsonarqube-42b5ea685c8ee46cf05625879300aa3eb3529897.tar.gz
sonarqube-42b5ea685c8ee46cf05625879300aa3eb3529897.zip
Rewrite usage of Organization containers
Diffstat (limited to 'server/sonar-web/src/main/js/app')
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/global/__tests__/GlobalNavUser-test.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/global/__tests__/GlobalNavUser-test.tsx b/server/sonar-web/src/main/js/app/components/nav/global/__tests__/GlobalNavUser-test.tsx
index 1ffec34be8f..90cf0393293 100644
--- a/server/sonar-web/src/main/js/app/components/nav/global/__tests__/GlobalNavUser-test.tsx
+++ b/server/sonar-web/src/main/js/app/components/nav/global/__tests__/GlobalNavUser-test.tsx
@@ -20,12 +20,13 @@
import * as React from 'react';
import { shallow } from 'enzyme';
import GlobalNavUser from '../GlobalNavUser';
+import { Visibility } from '../../../../types';
const currentUser = { avatar: 'abcd1234', isLoggedIn: true, name: 'foo', email: 'foo@bar.baz' };
const organizations = [
- { key: 'myorg', name: 'MyOrg', projectVisibility: 'public' },
- { key: 'foo', name: 'Foo', projectVisibility: 'public' },
- { key: 'bar', name: 'bar', projectVisibility: 'public' }
+ { key: 'myorg', name: 'MyOrg', projectVisibility: Visibility.Public },
+ { key: 'foo', name: 'Foo', projectVisibility: Visibility.Public },
+ { key: 'bar', name: 'bar', projectVisibility: Visibility.Public }
];
const appState = { organizationsEnabled: true };