Skip to content

Commit

Permalink
update import name
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Feb 1, 2024
1 parent 69e072b commit 7412da8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/fastify-plugins/maps.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from 'brittle'
import Fastify from 'fastify'

import { plugin as MapsPlugin } from '../../src/fastify-plugins/maps/index.js'
import { plugin as MapServerPlugin } from '../../src/fastify-plugins/maps/index.js'
import { plugin as StaticMapsPlugin } from '../../src/fastify-plugins/maps/static-maps.js'

const MAP_FIXTURES_PATH = new URL('../fixtures/maps', import.meta.url).pathname
Expand All @@ -10,7 +10,7 @@ test('fails to register when dependent plugins are not registered', async (t) =>
const server = setup(t)

await t.exception(async () => {
await server.register(MapsPlugin)
await server.register(MapServerPlugin)
}, 'fails to register if dependencies are not registered')
})

Expand All @@ -22,7 +22,7 @@ test('prefix opt is handled correctly', async (t) => {
staticRootDir: MAP_FIXTURES_PATH,
})

server.register(MapsPlugin, { prefix: 'maps' })
server.register(MapServerPlugin, { prefix: 'maps' })

await server.listen()

Expand Down Expand Up @@ -55,7 +55,7 @@ test('/style.json resolves style.json of local "default" static map when availab
prefix: 'static',
staticRootDir: MAP_FIXTURES_PATH,
})
server.register(MapsPlugin)
server.register(MapServerPlugin)

await server.listen()

Expand Down

0 comments on commit 7412da8

Please sign in to comment.