Skip to content

Commit 73fd0f9

Browse files
committed
fix(core): include index.js for format/lint
1 parent 6d1367a commit 73fd0f9

3 files changed

Lines changed: 17 additions & 9 deletions

File tree

biome.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"files": {
99
"ignoreUnknown": true,
10-
"includes": ["lib/**/*.js", "test/**/*.js"]
10+
"includes": ["index.js", "lib/**/*.js", "test/**/*.js"]
1111
},
1212
"formatter": {
1313
"enabled": true,
@@ -20,7 +20,8 @@
2020
"suspicious": {
2121
"noRedundantUseStrict": "off",
2222
"noPrototypeBuiltins": "off",
23-
"useIsArray": "off"
23+
"useIsArray": "off",
24+
"noGlobalAssign": "off"
2425
},
2526
"complexity": {
2627
"useArrowFunction": "off",

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ exports.UnauthorizedClientError = require('./lib/errors/unauthorized-client-erro
3232
exports.UnauthorizedRequestError = require('./lib/errors/unauthorized-request-error');
3333
exports.UnsupportedGrantTypeError = require('./lib/errors/unsupported-grant-type-error');
3434
exports.UnsupportedResponseTypeError = require('./lib/errors/unsupported-response-type-error');
35-

test/integration/grant-types/refresh-token-grant-type_test.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,23 +248,31 @@ describe('RefreshTokenGrantType integration', function () {
248248
grantType.handle(request, client).should.be.an.instanceOf(Promise);
249249
});
250250

251-
it('should throw an error if extra `scope` is requested', async function() {
251+
it('should throw an error if extra `scope` is requested', async function () {
252252
const client = { id: 123 };
253253
const token = {
254254
accessToken: 'foo',
255255
client: { id: 123 },
256256
user: { name: 'foo' },
257-
refreshTokenExpiresAt: new Date(new Date() * 2)
257+
refreshTokenExpiresAt: new Date(new Date() * 2),
258258
};
259259
const model = {
260-
getRefreshToken: async function() {
260+
getRefreshToken: async function () {
261261
return token;
262262
},
263263
revokeToken: () => should.fail(),
264-
saveToken: () => should.fail()
264+
saveToken: () => should.fail(),
265265
};
266-
const grantType = new RefreshTokenGrantType({ accessTokenLifetime: 123, model });
267-
const request = new Request({ body: { refresh_token: 'foobar', scope: 'read' }, headers: {}, method: {}, query: {} });
266+
const grantType = new RefreshTokenGrantType({
267+
accessTokenLifetime: 123,
268+
model,
269+
});
270+
const request = new Request({
271+
body: { refresh_token: 'foobar', scope: 'read' },
272+
headers: {},
273+
method: {},
274+
query: {},
275+
});
268276

269277
try {
270278
await grantType.handle(request, client);

0 commit comments

Comments
 (0)