mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
feat: 补充 uuid 单测
This commit is contained in:
parent
12a83f07ec
commit
086cfd1965
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user