fix: update eval serializer to latest changes

This commit is contained in:
Jai Bhagat 2022-01-28 10:14:29 -05:00
parent ead706037d
commit 8533abde2e
2 changed files with 5 additions and 1 deletions

View File

@ -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'] };

View File

@ -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: {