diff options
Diffstat (limited to 'spec/javascripts/registry')
| -rw-r--r-- | spec/javascripts/registry/components/table_registry_spec.js | 1 | ||||
| -rw-r--r-- | spec/javascripts/registry/stores/mutations_spec.js | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/spec/javascripts/registry/components/table_registry_spec.js b/spec/javascripts/registry/components/table_registry_spec.js index 6aa61afc445..d9f9d71307e 100644 --- a/spec/javascripts/registry/components/table_registry_spec.js +++ b/spec/javascripts/registry/components/table_registry_spec.js @@ -29,6 +29,7 @@ describe('table registry', () => { it('should render registry tag', () => { const textRendered = vm.$el.querySelector('.table tbody tr').textContent.trim().replace(/\s\s+/g, ' '); + expect(textRendered).toContain(repoPropsData.list[0].tag); expect(textRendered).toContain(repoPropsData.list[0].shortRevision); expect(textRendered).toContain(repoPropsData.list[0].layers); diff --git a/spec/javascripts/registry/stores/mutations_spec.js b/spec/javascripts/registry/stores/mutations_spec.js index 2e4c0659daa..e19fe7a27cf 100644 --- a/spec/javascripts/registry/stores/mutations_spec.js +++ b/spec/javascripts/registry/stores/mutations_spec.js @@ -18,6 +18,7 @@ describe('Mutations Registry Store', () => { it('should set the main endpoint', () => { const expectedState = Object.assign({}, mockState, { endpoint: 'foo' }); mutations[types.SET_MAIN_ENDPOINT](mockState, 'foo'); + expect(mockState).toEqual(expectedState); }); }); @@ -25,6 +26,7 @@ describe('Mutations Registry Store', () => { describe('SET_REPOS_LIST', () => { it('should set a parsed repository list', () => { mutations[types.SET_REPOS_LIST](mockState, reposServerResponse); + expect(mockState.repos).toEqual(parsedReposServerResponse); }); }); @@ -32,6 +34,7 @@ describe('Mutations Registry Store', () => { describe('TOGGLE_MAIN_LOADING', () => { it('should set a parsed repository list', () => { mutations[types.TOGGLE_MAIN_LOADING](mockState); + expect(mockState.isLoading).toEqual(true); }); }); @@ -75,6 +78,7 @@ describe('Mutations Registry Store', () => { }); mutations[types.TOGGLE_REGISTRY_LIST_LOADING](mockState, mockState.repos[0]); + expect(mockState.repos[0].isLoading).toEqual(true); }); }); |
