Skip to content

Commit

Permalink
[backend] exclude platform version from logger tests
Browse files Browse the repository at this point in the history
  • Loading branch information
labo-flg committed Jan 13, 2025
1 parent b414944 commit 89b7db7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const CLASSIC_OBJECT = {
message: 'Bulk indexing fail',
source: 'backend',
timestamp: '2025-01-09T20:57:05.422Z',
version: '6.4.6'
// version: '6.4.6', we remove the octi version from the tests so it works after bumping during the automated release process
};
const TOO_COMPLEX_OBJECT = {
category: 'APP',
Expand Down Expand Up @@ -189,6 +189,7 @@ const WITH_ERROR_OBJECT = {
describe('Logger test suite', () => {
it('Log object is correctly untouched', () => {
const cleanObject = prepareLogMetadata(CLASSIC_OBJECT);
delete cleanObject.version; // do not compare octi version, for a stable test after bumping platform version
expect(JSON.stringify(cleanObject)).toEqual(JSON.stringify(CLASSIC_OBJECT));
});

Expand Down

0 comments on commit 89b7db7

Please sign in to comment.