Skip to content

Commit

Permalink
chore(tests): fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Pupix committed Jan 29, 2025
1 parent f55a4ba commit 7036fbf
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions test/build-plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,16 @@ test('client wrapper', async (t) => {
await fastifyMock.secrets.refresh()

assert.strictEqual(fastifyMock.secrets.test, 'value for secretAlias - 2', 'refreshed secret has been called twice')
assert.strictEqual(fastifyMock.secrets.test2, 'value for secretAlias2 - 2', 'refreshed secret has been called twice')
assert.strictEqual(fastifyMock.secrets.test3, 'value for secretAlias3 - 2', 'refreshed secret has been called twice')
assert.strictEqual(
fastifyMock.secrets.test2,
'value for secretAlias2 - 2',
'refreshed secret has been called twice'
)
assert.strictEqual(
fastifyMock.secrets.test3,
'value for secretAlias3 - 2',
'refreshed secret has been called twice'
)
})

await test('respects namespaces when refreshing', async (t) => {
Expand All @@ -521,7 +529,11 @@ test('client wrapper', async (t) => {
await fastifyMock.secrets.testns.refresh('test')

assert.strictEqual(fastifyMock.secrets.testns.test, 'value for test - 2', 'refreshed secret has been called twice')
assert.strictEqual(fastifyMock.secrets.testns.test2, 'value for test2 - 1', 'un-refreshed secret has been called once')
assert.strictEqual(
fastifyMock.secrets.testns.test2,
'value for test2 - 1',
'un-refreshed secret has been called once'
)
})

await test('will instantiate a fresh client if there is a provided close method', async (t) => {
Expand Down

0 comments on commit 7036fbf

Please sign in to comment.