Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
nailiable committed Nov 5, 2024
1 parent 0acbd57 commit 2aa0374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/typeorm/test/index.test.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -34,7 +34,7 @@ describe('typeorm', () => {
}
}

@Component(CustomDataSource)
@Configuration(CustomDataSource)
class TypeOrmConfiguration implements CustomDataSource {
configure(oldOptions: DataSourceOptions): DataSourceOptions | Promise<DataSourceOptions> {
expect(oldOptions).toStrictEqual(configuration.naily.typeorm)
Expand Down

0 comments on commit 2aa0374

Please sign in to comment.