mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +00:00
18 lines
452 B
TypeScript
18 lines
452 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
import { appBoosts } from '../src/boosts';
|
|
|
|
describe('appBoosts', () => {
|
|
it('should add value successfully', () => {
|
|
appBoosts.add('test', 1);
|
|
expect(appBoosts.value.test).toBe(1);
|
|
});
|
|
|
|
it('should clear removed value', () => {
|
|
appBoosts.add('test', 1);
|
|
expect(appBoosts.value.test).toBe(1);
|
|
|
|
appBoosts.remove('test');
|
|
expect(appBoosts.value.test).toBeUndefined();
|
|
});
|
|
});
|