diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-27 21:09:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-27 21:09:41 +0300 |
commit | f569792df8a25caa1bed9c448c8c4c3f837f5164 (patch) | |
tree | 8c2ed7dae5ba132a97c0321a7649174e5832d637 /spec/frontend/users_select | |
parent | c2908ec6a0d7b62996cdb8da0350705bdad691bf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/users_select')
-rw-r--r-- | spec/frontend/users_select/utils_spec.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/spec/frontend/users_select/utils_spec.js b/spec/frontend/users_select/utils_spec.js deleted file mode 100644 index a09935d8a04..00000000000 --- a/spec/frontend/users_select/utils_spec.js +++ /dev/null @@ -1,33 +0,0 @@ -import $ from 'jquery'; -import { getAjaxUsersSelectOptions, getAjaxUsersSelectParams } from '~/users_select/utils'; - -const options = { - fooBar: 'baz', - activeUserId: 1, -}; - -describe('getAjaxUsersSelectOptions', () => { - it('returns options built from select data attributes', () => { - const $select = $('<select />', { 'data-foo-bar': 'baz', 'data-user-id': 1 }); - - expect( - getAjaxUsersSelectOptions($select, { fooBar: 'fooBar', activeUserId: 'user-id' }), - ).toEqual(options); - }); -}); - -describe('getAjaxUsersSelectParams', () => { - it('returns query parameters built from provided options', () => { - expect( - getAjaxUsersSelectParams(options, { - foo_bar: 'fooBar', - active_user_id: 'activeUserId', - non_existent_key: 'nonExistentKey', - }), - ).toEqual({ - foo_bar: 'baz', - active_user_id: 1, - non_existent_key: null, - }); - }); -}); |