From 8533abde2e53c9be808e4746a1895639892c9203 Mon Sep 17 00:00:00 2001 From: Jai Bhagat Date: Fri, 28 Jan 2022 10:14:29 -0500 Subject: [PATCH] fix: update eval serializer to latest changes --- ui/app/adapters/evaluation.js | 2 +- ui/tests/unit/serializers/evaluation-test.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/app/adapters/evaluation.js b/ui/app/adapters/evaluation.js index ec46de2ee..13f0caabb 100644 --- a/ui/app/adapters/evaluation.js +++ b/ui/app/adapters/evaluation.js @@ -1,6 +1,6 @@ import ApplicationAdapter from './application'; -export default class EvaluationAdapater extends ApplicationAdapter { +export default class EvaluationAdapter extends ApplicationAdapter { handleResponse(_status, headers) { const result = super.handleResponse(...arguments); result.meta = { nextToken: headers['x-nomad-nexttoken'] }; diff --git a/ui/tests/unit/serializers/evaluation-test.js b/ui/tests/unit/serializers/evaluation-test.js index 6e17427eb..d8f7a7561 100644 --- a/ui/tests/unit/serializers/evaluation-test.js +++ b/ui/tests/unit/serializers/evaluation-test.js @@ -40,6 +40,8 @@ module('Unit | Serializer | Evaluation', function (hooks) { nodesAvailable: 10, }, ], + namespace: 'test-namespace', + plainJobId: 'some-job-id', }, relationships: { job: { @@ -89,6 +91,8 @@ module('Unit | Serializer | Evaluation', function (hooks) { nodesAvailable: 25, }, ], + namespace: 'test-namespace', + plainJobId: 'some-job-id', }, relationships: { job: {