Skip to content

Commit

Permalink
adjust enum values
Browse files Browse the repository at this point in the history
  • Loading branch information
taulinger committed Jan 10, 2025
1 parent 836c092 commit 03494c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/store/layers/layers.action.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down
6 changes: 3 additions & 3 deletions test/store/layers/layers.action.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});

0 comments on commit 03494c5

Please sign in to comment.