Skip to content

Commit

Permalink
test(): fix invalid port (e2e tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Dec 13, 2019
1 parent bd5f943 commit 955e8bb
Showing 1 changed file with 43 additions and 3 deletions.
46 changes: 43 additions & 3 deletions e2e/module.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,24 @@ describe('BullModule', () => {
beforeAll(async () => {
module = await Test.createTestingModule({
imports: [
BullModule.register([{ name: 'test1' }, { name: 'test2' }]),
BullModule.register([
{
name: 'test1',
options: {
redis: {
port: 6380,
},
},
},
{
name: 'test2',
options: {
redis: {
port: 6380,
},
},
},
]),
],
}).compile();
});
Expand All @@ -56,6 +73,11 @@ describe('BullModule', () => {
name: 'test',
useFactory: () => ({
processors: [fakeProcessor],
options: {
redis: {
port: 6380,
},
},
}),
}),
],
Expand All @@ -76,8 +98,26 @@ describe('BullModule', () => {
module = await Test.createTestingModule({
imports: [
BullModule.registerAsync([
{ name: 'test1', useFactory: () => ({}) },
{ name: 'test2', useFactory: () => ({}) },
{
name: 'test1',
useFactory: () => ({
options: {
redis: {
port: 6380,
},
},
}),
},
{
name: 'test2',
useFactory: () => ({
options: {
redis: {
port: 6380,
},
},
}),
},
]),
],
}).compile();
Expand Down

0 comments on commit 955e8bb

Please sign in to comment.