feat: 补充 uuid 单测

This commit is contained in:
allenve 2023-11-08 17:08:58 +08:00
parent 12a83f07ec
commit 086cfd1965

View File

@ -563,6 +563,11 @@ test('evalute:Math', () => {
expect(evaluate('${POW(2, infinity)}', data)).toBe(data.infinity);
});
test('evalute:UUID', () => {
expect(evaluate('${UUID()}', {}).length).toBe(32);
expect(evaluate('${UUID(8)}', {}).length).toBe(8);
});
test('evalute:namespace', () => {
localStorage.setItem('a', '1');
localStorage.setItem('b', '2');