From 2aa037466a9b8bde4822cdb418628975c7144a35 Mon Sep 17 00:00:00 2001 From: Naily Date: Tue, 5 Nov 2024 20:35:06 +0800 Subject: [PATCH] fix: test --- packages/typeorm/test/index.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/typeorm/test/index.test.ts b/packages/typeorm/test/index.test.ts index 6f93ecd..9b9f44d 100644 --- a/packages/typeorm/test/index.test.ts +++ b/packages/typeorm/test/index.test.ts @@ -1,5 +1,5 @@ import { ConfigPlugin } from '@nailyjs/config' -import { AbstractBootstrap, Component, Injectable, PostConstruct } from '@nailyjs/ioc' +import { AbstractBootstrap, Configuration, Injectable, PostConstruct } from '@nailyjs/ioc' import { Column, DataSource, DataSourceOptions, Entity, PrimaryGeneratedColumn } from 'typeorm' import configuration from '../../../naily.config' import { CustomDataSource, TypeOrmPlugin } from '../src' @@ -34,7 +34,7 @@ describe('typeorm', () => { } } - @Component(CustomDataSource) + @Configuration(CustomDataSource) class TypeOrmConfiguration implements CustomDataSource { configure(oldOptions: DataSourceOptions): DataSourceOptions | Promise { expect(oldOptions).toStrictEqual(configuration.naily.typeorm)