Skip to content

Commit 35ec939

Browse files
committed
Fix method execution mistake
1 parent 0d2f59b commit 35ec939

File tree

16 files changed

+24
-24
lines changed

16 files changed

+24
-24
lines changed

16_Managing_a_NATS_Client/app/tickets/src/routes/__test__/new.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ it('publishes an event', async () => {
9494
})
9595
.expect(201);
9696

97-
expect(natsWrapper.client.publish).toHaveBeenCalled;
97+
expect(natsWrapper.client.publish).toHaveBeenCalled();
9898
});

16_Managing_a_NATS_Client/app/tickets/src/routes/__test__/update.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import mongoose from 'mongoose';
12
import request from 'supertest';
23
import { app } from '../../app';
3-
import mongoose from 'mongoose';
44
import { natsWrapper } from '../../NatsWrapper';
55

66
it('return a 404 if the provided id does not exist', async () => {
@@ -129,5 +129,5 @@ it('publishes an event', async () => {
129129
})
130130
.expect(200);
131131

132-
expect(natsWrapper.client.publish).toHaveBeenCalled;
132+
expect(natsWrapper.client.publish).toHaveBeenCalled();
133133
});

17_Cross_Service_Data_Replication_In_Action/app/tickets/src/routes/__test__/new.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ it('publishes an event', async () => {
9494
})
9595
.expect(201);
9696

97-
expect(natsWrapper.client.publish).toHaveBeenCalled;
97+
expect(natsWrapper.client.publish).toHaveBeenCalled();
9898
});

17_Cross_Service_Data_Replication_In_Action/app/tickets/src/routes/__test__/update.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import mongoose from 'mongoose';
12
import request from 'supertest';
23
import { app } from '../../app';
3-
import mongoose from 'mongoose';
44
import { natsWrapper } from '../../NatsWrapper';
55

66
it('return a 404 if the provided id does not exist', async () => {
@@ -129,5 +129,5 @@ it('publishes an event', async () => {
129129
})
130130
.expect(200);
131131

132-
expect(natsWrapper.client.publish).toHaveBeenCalled;
132+
expect(natsWrapper.client.publish).toHaveBeenCalled();
133133
});

18_Understanding_Event_Flow/app/tickets/src/routes/__test__/new.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ it('publishes an event', async () => {
9494
})
9595
.expect(201);
9696

97-
expect(natsWrapper.client.publish).toHaveBeenCalled;
97+
expect(natsWrapper.client.publish).toHaveBeenCalled();
9898
});

18_Understanding_Event_Flow/app/tickets/src/routes/__test__/update.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import mongoose from 'mongoose';
12
import request from 'supertest';
23
import { app } from '../../app';
3-
import mongoose from 'mongoose';
44
import { natsWrapper } from '../../NatsWrapper';
55

66
it('return a 404 if the provided id does not exist', async () => {
@@ -129,5 +129,5 @@ it('publishes an event', async () => {
129129
})
130130
.expect(200);
131131

132-
expect(natsWrapper.client.publish).toHaveBeenCalled;
132+
expect(natsWrapper.client.publish).toHaveBeenCalled();
133133
});

19_Listening_for_Events_and_Handling_Concurrency_Issues/app/tickets/src/routes/__test__/new.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ it('publishes an event', async () => {
9494
})
9595
.expect(201);
9696

97-
expect(natsWrapper.client.publish).toHaveBeenCalled;
97+
expect(natsWrapper.client.publish).toHaveBeenCalled();
9898
});

19_Listening_for_Events_and_Handling_Concurrency_Issues/app/tickets/src/routes/__test__/update.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import mongoose from 'mongoose';
22
import request from 'supertest';
33
import { app } from '../../app';
4-
import { natsWrapper } from '../../NatsWrapper';
54
import { Ticket } from '../../models/Ticket';
5+
import { natsWrapper } from '../../NatsWrapper';
66

77
it('return a 404 if the provided id does not exist', async () => {
88
const id = mongoose.Types.ObjectId().toHexString();
@@ -130,7 +130,7 @@ it('publishes an event', async () => {
130130
})
131131
.expect(200);
132132

133-
expect(natsWrapper.client.publish).toHaveBeenCalled;
133+
expect(natsWrapper.client.publish).toHaveBeenCalled();
134134
});
135135

136136
it('rejects updates if the ticket is reserved', async () => {

20_Worker_Services/app/tickets/src/routes/__test__/new.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ it('publishes an event', async () => {
9494
})
9595
.expect(201);
9696

97-
expect(natsWrapper.client.publish).toHaveBeenCalled;
97+
expect(natsWrapper.client.publish).toHaveBeenCalled();
9898
});

20_Worker_Services/app/tickets/src/routes/__test__/update.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import mongoose from 'mongoose';
22
import request from 'supertest';
33
import { app } from '../../app';
4-
import { natsWrapper } from '../../NatsWrapper';
54
import { Ticket } from '../../models/Ticket';
5+
import { natsWrapper } from '../../NatsWrapper';
66

77
it('return a 404 if the provided id does not exist', async () => {
88
const id = mongoose.Types.ObjectId().toHexString();
@@ -130,7 +130,7 @@ it('publishes an event', async () => {
130130
})
131131
.expect(200);
132132

133-
expect(natsWrapper.client.publish).toHaveBeenCalled;
133+
expect(natsWrapper.client.publish).toHaveBeenCalled();
134134
});
135135

136136
it('rejects updates if the ticket is reserved', async () => {

0 commit comments

Comments
 (0)