diff options
Diffstat (limited to 'spec/frontend/logs/stores')
-rw-r--r-- | spec/frontend/logs/stores/actions_spec.js | 2 | ||||
-rw-r--r-- | spec/frontend/logs/stores/mutations_spec.js | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/spec/frontend/logs/stores/actions_spec.js b/spec/frontend/logs/stores/actions_spec.js index acd9536a682..e4501abdc76 100644 --- a/spec/frontend/logs/stores/actions_spec.js +++ b/spec/frontend/logs/stores/actions_spec.js @@ -17,7 +17,7 @@ import { import { defaultTimeRange } from '~/vue_shared/constants'; import axios from '~/lib/utils/axios_utils'; -import flash from '~/flash'; +import { deprecatedCreateFlash as flash } from '~/flash'; import { mockPodName, diff --git a/spec/frontend/logs/stores/mutations_spec.js b/spec/frontend/logs/stores/mutations_spec.js index 137533f02d7..4a095e0f26e 100644 --- a/spec/frontend/logs/stores/mutations_spec.js +++ b/spec/frontend/logs/stores/mutations_spec.js @@ -272,7 +272,8 @@ describe('Logs Store Mutations', () => { mutations[types.RECEIVE_MANAGED_APPS_DATA_SUCCESS](state, mockManagedApps); - expect(state.managedApps.options).toEqual(mockManagedApps); + expect(state.managedApps.options.length).toEqual(1); + expect(state.managedApps.options).toEqual([mockManagedApps[0]]); expect(state.managedApps.isLoading).toBe(false); }); }); |