Skip to content

Commit

Permalink
linter is happy
Browse files Browse the repository at this point in the history
  • Loading branch information
vsun757 committed Oct 31, 2023
1 parent ce1af98 commit 55984c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/services/techniques-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const util = require('util');

const Technique = require('../models/technique-model');
const config = require('../config/config');
const {lastUpdatedByQueryHelper} = require('../lib/request-parameter-helper');
const { BadlyFormattedParameterError, MissingParameterError } = require('../exceptions');

const errors = {
Expand Down Expand Up @@ -71,7 +70,7 @@ class TechniquesService extends BaseService {
return null;
}
else {
const allTactics = await retrieveAllTactics({});
const allTactics = await this.retrieveAllTactics({});
const filteredTactics = allTactics.filter(this.tacticMatchesTechnique(technique));
const pagedResults = this.getPageOfData(filteredTactics, options);

Expand Down Expand Up @@ -99,7 +98,7 @@ class TechniquesService extends BaseService {
throw err;
}
}
};
}

}
module.exports = new TechniquesService();
2 changes: 1 addition & 1 deletion app/tests/api/techniques/techniques.tactics.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ describe('Techniques with Tactics API', function () {
});

it('GET /api/techniques/:id/modified/:modified/tactics should return the first page of tactics for technique 2', async function () {
await request(app)
const res = await request(app)
.get(`/api/techniques/${ technique2.stix.id }/modified/${ technique2.stix.modified }/tactics?offset=0&limit=2&includePagination=true`)
.set('Accept', 'application/json')
.set('Cookie', `${ login.passportCookieName }=${ passportCookie.value }`)
Expand Down

0 comments on commit 55984c7

Please sign in to comment.