diff --git a/tests/fastify-plugins/maps.js b/tests/fastify-plugins/maps.js index 5de892aad..5cb0cfd19 100644 --- a/tests/fastify-plugins/maps.js +++ b/tests/fastify-plugins/maps.js @@ -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 @@ -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') }) @@ -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() @@ -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()