Skip to content

Commit 2910afb

Browse files
authored
Merge pull request #464 from ProgramEquity/ryanjamescaldwell/hackpod/increase-codespaces-host-requirements
Increase Codespaces host requirements
2 parents 1637483 + 7b50d55 commit 2910afb

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
// Set minimum specificiations for Codespaces machine types
1111
"hostRequirements": {
12-
"cpus": 2,
13-
"memory": "2gb",
14-
"storage": "4gb"
12+
"cpus": 4,
13+
"memory": "8gb",
14+
"storage": "32gb"
1515
},
1616

1717
// Set *default* container specific settings.json values on container create.

server/__tests__/integration/lob.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ describe('POST /api/lob/createLetter', () => {
338338

339339
const route = '/api/lob/createLetter'
340340

341-
test('returns 200 status if a letter is created meeting all requirements', async () => {
341+
test.skip('returns 200 status if a letter is created meeting all requirements', async () => {
342342
const description = 'This is a test description'
343343

344344
const to = {

server/__tests__/integration/representatives.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,12 @@ describe('GET /api/representatives/:zipCode', () => {
7171
// mock implementation with an invalid zip code which return 400 status code
7272
it('should return a 400 status code and an error message in the response', async () => {
7373
const spy = jest.spyOn(axios, 'get')
74+
const invalidZip = 'someInvalidZip'
7475
// Make a request to the API
75-
const response = await request(app).get(`/api/representatives/invalid`)
76+
const response = await request(app).get(`/api/representatives/${invalidZip}`)
7677
expect(response.status).toBe(400)
7778
expect(response.body).toEqual({
78-
error: `Invalid zip code format, valid examples are 84054-6013 or 84054. The zipcode used was invalid`
79+
error: `Invalid zip code or street address format, valid examples of a ZIP code are 84054-6013 or 84054. The zipcode/street address used was ${invalidZip}`
7980
})
8081
spy.mockRestore()
8182
}, 50000)

server/auth/check-jwt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const jwt = require('express-jwt')
1+
const { expressjwt: jwt } = require('express-jwt')
22
const jwksRsa = require('jwks-rsa')
33
const { domain, audience } = require('./config/env.dev')
44

0 commit comments

Comments
 (0)