Rename several view variables for clarity.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { isActionAllowedBasedOnInteractionState } from '../../src/utils/interaction-mode';
|
||||
|
||||
describe('isActionAllowedBasedOnInteractionState', () => {
|
||||
it('should handle interactionMode: all', () => {
|
||||
expect(isActionAllowedBasedOnInteractionState('all', true)).toBeTruthy();
|
||||
expect(isActionAllowedBasedOnInteractionState('all', false)).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should handle interactionMode: active', () => {
|
||||
expect(isActionAllowedBasedOnInteractionState('active', true)).toBeTruthy();
|
||||
expect(isActionAllowedBasedOnInteractionState('active', false)).toBeFalsy();
|
||||
});
|
||||
|
||||
it('should handle interactionMode: inactive', () => {
|
||||
expect(isActionAllowedBasedOnInteractionState('inactive', true)).toBeFalsy();
|
||||
expect(isActionAllowedBasedOnInteractionState('inactive', false)).toBeTruthy();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user