From e127e8f9ccdbfa08b03c761507857fcd5997197f Mon Sep 17 00:00:00 2001 From: Kajlid <104261817+Kajlid@users.noreply.github.com> Date: Thu, 27 Jun 2024 17:10:03 +0200 Subject: [PATCH] chore: run linting and prettier on updated codebase --- src/manifests/utils/configs.test.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/manifests/utils/configs.test.ts b/src/manifests/utils/configs.test.ts index 2b1c3b2..9e8b558 100644 --- a/src/manifests/utils/configs.test.ts +++ b/src/manifests/utils/configs.test.ts @@ -261,14 +261,16 @@ describe('configs', () => { describe('not in stateful mode', () => { let nonStatefulConfig; beforeAll(() => { - delete process.env.STATEFUL; // Ensure STATEFUL is not set + delete process.env.STATEFUL; // Ensure STATEFUL is not set nonStatefulConfig = require('./configs'); }); it('should handle DASH mode without stateful', () => { // Arrange const configs = nonStatefulConfig.corruptorConfigUtils( - new URLSearchParams('statusCode=[{rsq:15,code:400}]&throttle=[{sq:15,rate:1000}]') + new URLSearchParams( + 'statusCode=[{rsq:15,code:400}]&throttle=[{sq:15,rate:1000}]' + ) ); configs.register(statusCodeConfig).register(throttleConfig); @@ -280,7 +282,8 @@ describe('configs', () => { // Assert expect(err).toEqual({ status: 400, - message: 'Relative sequence numbers on DASH are only supported when proxy is running in stateful mode' + message: + 'Relative sequence numbers on DASH are only supported when proxy is running in stateful mode' }); expect(actual).toBeNull(); }); @@ -288,7 +291,9 @@ describe('configs', () => { it('should handle HLS mode without stateful', () => { // Arrange const configs = nonStatefulConfig.corruptorConfigUtils( - new URLSearchParams('statusCode=[{rsq:15,code:400}]&throttle=[{sq:15,rate:1000}]') + new URLSearchParams( + 'statusCode=[{rsq:15,code:400}]&throttle=[{sq:15,rate:1000}]' + ) ); configs.register(statusCodeConfig).register(throttleConfig); @@ -300,7 +305,8 @@ describe('configs', () => { // Assert expect(err).toEqual({ status: 400, - message: 'Relative sequence numbers on HLS are only supported when proxy is running in stateful mode' + message: + 'Relative sequence numbers on HLS are only supported when proxy is running in stateful mode' }); expect(actual).toBeNull(); });