Skip to content

Commit f077138

Browse files
committed
Changes while reviewing and testing
1 parent bfa3a28 commit f077138

17 files changed

+1
-17
lines changed

app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ app.use(
5959
app.use(logger('dev'))
6060
app.use(express.json({ type: ["application/json", "application/ld+json"] }))
6161
app.use(express.text())
62-
app.use(express.urlencoded({ extended: true }))
6362
app.use(cookieParser())
6463

6564
//Publicly available scripts, CSS, and HTML pages.

routes/__tests__/bulkCreate.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const addAuth = (req, res, next) => {
1313

1414
const routeTester = new express()
1515
routeTester.use(express.json())
16-
routeTester.use(express.urlencoded({ extended: false }))
1716

1817
// Mount our own /bulkCreate route without auth that will use controller.bulkCreate
1918
routeTester.use("/bulkCreate", [addAuth, controller.bulkCreate])

routes/__tests__/bulkUpdate.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const addAuth = (req, res, next) => {
1313

1414
const routeTester = new express()
1515
routeTester.use(express.json())
16-
routeTester.use(express.urlencoded({ extended: false }))
1716

1817
// Mount our own /bulkCreate route without auth that will use controller.bulkCreate
1918
routeTester.use("/bulkUpdate", [addAuth, controller.bulkUpdate])

routes/__tests__/contentType.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import rest from '../../rest.js'
66
const routeTester = express()
77
routeTester.use(express.json({ type: ["application/json", "application/ld+json"] }))
88
routeTester.use(express.text())
9-
routeTester.use(express.urlencoded({ extended: true }))
9+
1010

1111
// Mount the validateContentType middleware on /api just like api-routes.js
1212
routeTester.use("/api", rest.validateContentType)

routes/__tests__/create.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const addAuth = (req, res, next) => {
1414

1515
const routeTester = new express()
1616
routeTester.use(express.json())
17-
routeTester.use(express.urlencoded({ extended: false }))
1817

1918
// Mount our own /create route without auth that will use controller.create
2019
routeTester.use("/create", [addAuth, controller.create])

routes/__tests__/delete.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const addAuth = (req, res, next) => {
1313

1414
const routeTester = new express()
1515
routeTester.use(express.json())
16-
routeTester.use(express.urlencoded({ extended: false }))
1716

1817
// FIXME here we need to create something to delete in order to test this route.
1918
routeTester.use("/create", [addAuth, controller.create])

routes/__tests__/history.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import controller from '../../db-controller.js'
88

99
const routeTester = new express()
1010
routeTester.use(express.json())
11-
routeTester.use(express.urlencoded({ extended: false }))
1211

1312
// Mount our own /history route without auth that will use controller.history
1413
routeTester.use("/history/:_id", controller.history)

routes/__tests__/id.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import controller from '../../db-controller.js'
77

88
const routeTester = new express()
99
routeTester.use(express.json())
10-
routeTester.use(express.urlencoded({ extended: false }))
1110

1211
// Mount our own /id route without auth that will use controller.id
1312
routeTester.use("/id/:_id", controller.id)

routes/__tests__/overwrite-optimistic-locking.test.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const addAuth = (req, res, next) => {
2626
// Create a test Express app
2727
const routeTester = express()
2828
routeTester.use(express.json())
29-
routeTester.use(express.urlencoded({ extended: false }))
3029

3130
// Mount our routes
3231
routeTester.use('/overwrite', [addAuth, controller.overwrite])

routes/__tests__/patch.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const addAuth = (req, res, next) => {
1414

1515
const routeTester = new express()
1616
routeTester.use(express.json())
17-
routeTester.use(express.urlencoded({ extended: false }))
1817

1918
// Mount our own /patch route without auth that will use controller.patch
2019
routeTester.use("/patch", [addAuth, controller.patchUpdate])

0 commit comments

Comments
 (0)