Skip to content

Commit c71ba83

Browse files
committed
Restore checking of number of RDSDataService instantiations
1 parent 0f848ee commit c71ba83

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ describe('SDK configuration tests', () => {
3434
}
3535
});
3636

37+
expect(RDSDataService.calls()).toHaveLength(1);
3738
expect(RDSDataService.call(0).thisValue.config).toEqual(
3839
expect.objectContaining({
3940
requestHandler: new NodeHttpHandler({
@@ -62,6 +63,7 @@ describe('SDK configuration tests', () => {
6263
}
6364
});
6465

66+
expect(RDSDataService.calls()).toHaveLength(1);
6567
expect(RDSDataService.call(0).thisValue.config).toEqual(
6668
expect.objectContaining({
6769
requestHandler: new NodeHttpHandler({
@@ -93,6 +95,7 @@ describe('SDK configuration tests', () => {
9395
}
9496
});
9597

98+
expect(RDSDataService.calls()).toHaveLength(1);
9699
expect(RDSDataService.call(0).thisValue.config).toEqual(
97100
expect.objectContaining({
98101
requestHandler: new NodeHttpHandler({
@@ -124,6 +127,7 @@ describe('SDK configuration tests', () => {
124127
protocol: 'http:'
125128
});
126129

130+
expect(RDSDataService.calls()).toHaveLength(1);
127131
expect(RDSDataService.call(0).thisValue.config).toEqual(
128132
expect.objectContaining({
129133
requestHandler: new NodeHttpHandler({

0 commit comments

Comments
 (0)