Skip to content

Commit 86b1375

Browse files
committed
fix lint errors
1 parent 39f33ca commit 86b1375

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

packages/pwa-kit-runtime/src/ssr/server/process-token-response.test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ function makeJWT(payload) {
2424
return `${header}.${payloadPart}.sig`
2525
}
2626

27-
2827
function makeReq(siteId = 'testsite') {
2928
return {headers: {'x-site-id': siteId}}
3029
}
@@ -124,9 +123,7 @@ describe('setHttpOnlySessionCookies', () => {
124123
const res = makeRes()
125124
const buf = makeResponseBuffer({access_token: 'x'})
126125
const req = {headers: {}}
127-
expect(() => setHttpOnlySessionCookies(buf, {}, req, res, {})).toThrow(
128-
/siteId is missing/
129-
)
126+
expect(() => setHttpOnlySessionCookies(buf, {}, req, res, {})).toThrow(/siteId is missing/)
130127
})
131128

132129
test('returns buffer unchanged for non-JSON response', () => {

packages/pwa-kit-runtime/src/utils/ssr-server/configure-proxy.basic.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
import {applyProxyRequestHeaders, setScapiAuthRequestHeaders, configureProxy} from './configure-proxy'
7+
import {
8+
applyProxyRequestHeaders,
9+
setScapiAuthRequestHeaders,
10+
configureProxy
11+
} from './configure-proxy'
812
import * as ssrProxying from '../ssr-proxying'
913
import * as utils from './utils'
1014
import cookie from 'cookie'

0 commit comments

Comments
 (0)