Skip to content

Commit

Permalink
Merge pull request #408 from ilteoood/master
Browse files Browse the repository at this point in the history
fix: integration test
  • Loading branch information
simoneb authored Dec 9, 2024
2 parents 901ac26 + 36ff6f4 commit 84840c2
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions test/integration.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { test, teardown } = require('tap')
const { test, after } = require('node:test')
const uuid = require('uuid')
const Fastify = require('fastify')
const { SecretsManager, DeleteSecretCommand, CreateSecretCommand } = require('@aws-sdk/client-secrets-manager')
Expand All @@ -21,7 +21,7 @@ function createSecret() {
)
}

teardown(function deleteSecret() {
after(function deleteSecret() {
return client.send(
new DeleteSecretCommand({
SecretId: SECRET_NAME,
Expand All @@ -47,11 +47,5 @@ test('integration', async (t) => {

await fastify.ready()

t.has(
fastify.secrets,
{
test: SECRET_CONTENT
},
'decorates fastify with secret content'
)
t.assert.deepStrictEqual(fastify.secrets.test, SECRET_CONTENT, 'decorates fastify with secret content')
})

0 comments on commit 84840c2

Please sign in to comment.