summaryrefslogtreecommitdiff
path: root/spec/javascripts/commit/pipelines/pipelines_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/javascripts/commit/pipelines/pipelines_spec.js')
-rw-r--r--spec/javascripts/commit/pipelines/pipelines_spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/commit/pipelines/pipelines_spec.js b/spec/javascripts/commit/pipelines/pipelines_spec.js
index d62c2966a8b..80eb918beaf 100644
--- a/spec/javascripts/commit/pipelines/pipelines_spec.js
+++ b/spec/javascripts/commit/pipelines/pipelines_spec.js
@@ -11,8 +11,8 @@ describe('Pipelines table in Commits and Merge requests', () => {
beforeEach(() => {
PipelinesTable = Vue.extend(pipelinesTable);
- const pipelines = getJSONFixture(jsonFixtureName).pipelines;
- pipeline = pipelines.find(p => p.id === 1);
+ const pipelines = getJSONFixture(jsonFixtureName).pipelines; // sorted by id, descending
+ pipeline = pipelines[2];
});
describe('successful request', () => {