Convert sendBootNotification to OCPP message sending handler
[e-mobility-charging-stations-simulator.git] / test / utils / CircularArrayTest.ts
index 4686722dd59dd40723c6089fa94682f7097dff39..d17df344b1c3d5c13675035ad7ca54410b1d6911 100644 (file)
@@ -9,7 +9,7 @@ describe('Circular array test suite', () => {
 
   it('Verify circular array default size at instance creation', () => {
     const circularArray = new CircularArray();
-    expect(circularArray.size).toBe(2000);
+    expect(circularArray.size).toBe(Number.MAX_SAFE_INTEGER);
   });
 
   it('Verify that circular array size can be set at instance creation', () => {
@@ -26,10 +26,8 @@ describe('Circular array test suite', () => {
     expect(circularArray.length).toBe(4);
   });
 
-  it('Verify that circular array size can\'t be negative at instance creation', () => {
-    expect(() => new CircularArray(-1)).toThrowError(
-      new RangeError('Invalid circular array size')
-    );
+  it("Verify that circular array size can't be negative at instance creation", () => {
+    expect(() => new CircularArray(-1)).toThrowError(new RangeError('Invalid circular array size'));
   });
 
   it('Verify that circular array empty works as intended', () => {