Skip to content

Commit

Permalink
fix: rebase error
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Dec 15, 2024
1 parent f840ddd commit aef2c0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/leoric/test/fixtures/multi/src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const { InjectDataSource } = leoric;

@Configuration({
imports: [koa, leoric],
conflictCheck: true,
importConfigs: [path.join(__dirname, 'config')],
})
export class ContainerLifeCycle {
Expand All @@ -24,6 +23,6 @@ export class ContainerLifeCycle {
expect(this.defaultDataSource).toBeDefined();
expect(this.defaultDataSource).toEqual(this.namedDataSource);
expect(this.defaultDataSource).not.toEqual(this.subsystemDataSource);

}
}
4 changes: 2 additions & 2 deletions packages/leoric/test/multi.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { close, createHttpRequest, createApp } from '@midwayjs/mock';
import { close, createHttpRequest, createLegacyApp } from '@midwayjs/mock';
import { join } from 'path';
import { existsSync, unlinkSync } from 'fs';
import { IMidwayApplication } from '@midwayjs/core';
Expand All @@ -20,7 +20,7 @@ describe('test/multi.test.ts', () => {
beforeAll(async () => {
cleanFile(join(__dirname, 'fixtures/multi', 'database.sqlite'));
cleanFile(join(__dirname, 'fixtures/multi', 'subsystem.sqlite'));
app = await createApp(join(__dirname, 'fixtures', 'multi'));
app = await createLegacyApp(join(__dirname, 'fixtures', 'multi'));
postService = await app
.getApplicationContext()
.getAsync(PostService);
Expand Down

0 comments on commit aef2c0e

Please sign in to comment.