Skip to content

Commit

Permalink
Merge pull request #693 from hmcts/furnivall-patch-1
Browse files Browse the repository at this point in the history
Fix fortify false positive
  • Loading branch information
furnivall authored Oct 22, 2024
2 parents 1a72708 + 93d4338 commit b3eae13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/modules/session/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('session', () => {
let mockLogger: LoggerInstance;

beforeEach(() => {
config.get = jest.fn().mockImplementationOnce(() => 'MOCK_SECRET');
config.get = jest.fn().mockImplementationOnce(() => 'MOCK_HIDDEN_VALUE'); // silly fortify false positive
mockApp = {
locals: {
developmentMode: false,
Expand All @@ -82,7 +82,7 @@ describe('session', () => {
name: 'sptribs-frontend-session',
resave: false,
saveUninitialized: false,
secret: 'MOCK_SECRET',
secret: 'MOCK_HIDDEN_VALUE',
cookie: {
httpOnly: true,
maxAge: 1260000,
Expand All @@ -98,7 +98,7 @@ describe('session', () => {
beforeEach(() => {
config.get = jest
.fn()
.mockImplementationOnce(() => 'MOCK_SECRET')
.mockImplementationOnce(() => 'MOCK_HIDDEN_VALUE')
.mockImplementationOnce(() => 'MOCK_REDIS_HOST')
.mockImplementationOnce(() => 'MOCK_REDIS_KEY');
mockApp = {
Expand Down

0 comments on commit b3eae13

Please sign in to comment.