Skip to content

Commit

Permalink
fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vsun757 committed Oct 12, 2023
1 parent 25d1a50 commit 478ca8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/services/tactics-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TacticsService extends BaseService {
}
}

async getPageOfData(data, options) {
getPageOfData(data, options) {
const startPos = options.offset;
const endPos = (options.limit === 0) ? data.length : Math.min(options.offset + options.limit, data.length);

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

it('GET /api/tactics/:id/modified/:modified/techniques should not return the techniques when the tactic cannot be found', async function () {
request(app)
await request(app)
.get(`/api/tactics/not-an-id/modified/2022-01-01T00:00:00.000Z/techniques`)
.set('Accept', 'application/json')
.set('Cookie', `${ login.passportCookieName }=${ passportCookie.value }`)
Expand Down

0 comments on commit 478ca8d

Please sign in to comment.