diff options
Diffstat (limited to 'spec/frontend/registry/explorer/stores/actions_spec.js')
-rw-r--r-- | spec/frontend/registry/explorer/stores/actions_spec.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/frontend/registry/explorer/stores/actions_spec.js b/spec/frontend/registry/explorer/stores/actions_spec.js index 0df3ef68441..c1b977216ce 100644 --- a/spec/frontend/registry/explorer/stores/actions_spec.js +++ b/spec/frontend/registry/explorer/stores/actions_spec.js @@ -120,14 +120,15 @@ describe('Actions RegistryExplorer Store', () => { }); describe('fetch tags list', () => { - const url = window.btoa(`${endpoint}/1}`); + const url = `${endpoint}/1}`; + const path = window.btoa(JSON.stringify({ tags_path: `${endpoint}/1}` })); it('sets the tagsList', done => { - mock.onGet(window.atob(url)).replyOnce(200, registryServerResponse, {}); + mock.onGet(url).replyOnce(200, registryServerResponse, {}); testAction( actions.requestTagsList, - { id: url }, + { id: path }, {}, [ { type: types.SET_MAIN_LOADING, payload: true }, @@ -146,7 +147,7 @@ describe('Actions RegistryExplorer Store', () => { it('should create flash on error', done => { testAction( actions.requestTagsList, - { id: url }, + { id: path }, {}, [ { type: types.SET_MAIN_LOADING, payload: true }, |