mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-13 12:13:10 +00:00
9 lines
411 B
TypeScript
9 lines
411 B
TypeScript
import { shouldUseVariableSetter } from '../../src/misc';
|
|
|
|
it('shouldUseVariableSetter', () => {
|
|
expect(shouldUseVariableSetter(false, true)).toBeFalsy();
|
|
expect(shouldUseVariableSetter(true, true)).toBeTruthy();
|
|
expect(shouldUseVariableSetter(true, false)).toBeTruthy();
|
|
expect(shouldUseVariableSetter(undefined, false)).toBeFalsy();
|
|
expect(shouldUseVariableSetter(undefined, true)).toBeTruthy();
|
|
}); |