diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-03 19:13:02 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-03 19:13:02 +0300 |
commit | 5c91113c5b6edc4fa1d63bc161b791c7e84e644d (patch) | |
tree | dc262b3a55f29c0ccb89cb46f281e4c0b0d32d52 /spec/javascripts/deploy_keys | |
parent | f29e5d4d93123ea73e5f58be46020781af2ef7cb (diff) |
Fixed karma specs
Diffstat (limited to 'spec/javascripts/deploy_keys')
-rw-r--r-- | spec/javascripts/deploy_keys/components/keys_panel_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/deploy_keys/components/keys_panel_spec.js b/spec/javascripts/deploy_keys/components/keys_panel_spec.js index 416b80525fc..a69b39c35c4 100644 --- a/spec/javascripts/deploy_keys/components/keys_panel_spec.js +++ b/spec/javascripts/deploy_keys/components/keys_panel_spec.js @@ -30,13 +30,13 @@ describe('Deploy keys panel', () => { expect( vm.$el.querySelector('h5').textContent.trim(), - ).toContain('(1)'); + ).toContain(`(${vm.keys.length})`); }); it('renders list of keys', () => { expect( vm.$el.querySelectorAll('li').length, - ).toBe(1); + ).toBe(vm.keys.length); }); it('renders help box if keys are empty', (done) => { |