From 03494c5014075a26bc117c78fb06963988da91a6 Mon Sep 17 00:00:00 2001 From: Thomas Aulinger Date: Fri, 10 Jan 2025 18:38:46 +0100 Subject: [PATCH] adjust enum values --- src/store/layers/layers.action.js | 6 +++--- test/store/layers/layers.action.test.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/store/layers/layers.action.js b/src/store/layers/layers.action.js index 39838ad96d..9675ea118e 100644 --- a/src/store/layers/layers.action.js +++ b/src/store/layers/layers.action.js @@ -90,9 +90,9 @@ import { GeoResource } from '../../domain/geoResources'; * @enum {Number} */ export const SwipeAlignment = Object.freeze({ - NOT_SET: 0, - LEFT: 1, - RIGHT: 2 + NOT_SET: 'b', + LEFT: 'l', + RIGHT: 'r' }); const getStore = () => { diff --git a/test/store/layers/layers.action.test.js b/test/store/layers/layers.action.test.js index e87b63cf51..4cc5d894a5 100644 --- a/test/store/layers/layers.action.test.js +++ b/test/store/layers/layers.action.test.js @@ -3,8 +3,8 @@ import { SwipeAlignment } from '../../../src/store/layers/layers.action'; describe('layersAction', () => { it('exports a enum for SwipeAlignment', () => { expect(Object.keys(SwipeAlignment).length).toBe(3); - expect(SwipeAlignment.NOT_SET).toBe(0); - expect(SwipeAlignment.LEFT).toBe(1); - expect(SwipeAlignment.RIGHT).toBe(2); + expect(SwipeAlignment.NOT_SET).toBe('b'); + expect(SwipeAlignment.LEFT).toBe('l'); + expect(SwipeAlignment.RIGHT).toBe('r'); }); });