Skip to content

Commit

Permalink
Merge pull request #159 from AthennaIO/develop
Browse files Browse the repository at this point in the history
update deps
  • Loading branch information
jlenon7 committed Jan 9, 2024
2 parents 31b545c + 121c5bd commit e7119f0
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 44 deletions.
62 changes: 31 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/http",
"version": "4.16.0",
"version": "4.17.0",
"description": "The Athenna Http server. Built on top of fastify.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down Expand Up @@ -72,14 +72,14 @@
"#tests": "./tests/index.js"
},
"devDependencies": {
"@athenna/artisan": "^4.27.0",
"@athenna/common": "^4.26.0",
"@athenna/config": "^4.11.0",
"@athenna/ioc": "^4.12.0",
"@athenna/logger": "^4.13.0",
"@athenna/test": "^4.17.0",
"@athenna/artisan": "^4.28.0",
"@athenna/common": "^4.27.0",
"@athenna/config": "^4.12.0",
"@athenna/ioc": "^4.13.0",
"@athenna/logger": "^4.14.0",
"@athenna/test": "^4.18.0",
"@athenna/tsconfig": "^4.12.0",
"@athenna/view": "^4.10.0",
"@athenna/view": "^4.11.0",
"@fastify/cors": "^8.4.2",
"@fastify/helmet": "^11.1.1",
"@fastify/rate-limit": "^8.1.1",
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/kernels/HttpKernelTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ export default class HttpKernelTest {
public async shouldBeAbleToRegisterTheLoggerTerminatorInTheHttpServer({ assert }: Context) {
const kernel = new HttpKernel()
await kernel.registerLoggerTerminator()
const mock = Log.when('channelOrVanilla').return(undefined)
Log.when('channelOrVanilla').return(undefined)
Server.get({ url: '/hello', handler: ctx => ctx.response.send({ hello: true }) })

const response = await Server.request().get('hello')

assert.called(mock)
assert.called(Log.channelOrVanilla)
assert.deepEqual(response.json(), { hello: true })
}

Expand Down Expand Up @@ -249,12 +249,12 @@ export default class HttpKernelTest {

const kernel = new HttpKernel()
await kernel.registerLoggerTerminator()
const mock = Log.when('channelOrVanilla').return(undefined)
Log.when('channelOrVanilla').return(undefined)
Server.get({ url: '/hello', handler: ctx => ctx.response.send({ hello: true }) })

const response = await Server.request().get('hello')

assert.isTrue(mock.notCalled)
assert.notCalled(Log.channelOrVanilla)
assert.deepEqual(response.json(), { hello: true })
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/server/ServerTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class ServerTest {

@Test()
public async shouldBeAbleToGetTheFastifyVersionFromTheHttpServer({ assert }: Context) {
assert.equal(Server.getFastifyVersion(), '4.24.3')
assert.equal(Server.getFastifyVersion(), '4.25.2')
}

@Test()
Expand Down

0 comments on commit e7119f0

Please sign in to comment.