mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 15:19:12 +08:00
Add test for data#json api
This commit is contained in:
parent
9fe68c4b40
commit
25d89bf344
4
test/api/data/json.vader
Normal file
4
test/api/data/json.vader
Normal file
@ -0,0 +1,4 @@
|
||||
Execute ( SpaceVim api: data#json ):
|
||||
let json = SpaceVim#api#import('data#json')
|
||||
AssertEqual json.json_decode('{"foo":"zaa"}'), {'foo' : 'zaa'}
|
||||
AssertEqual json.json_encode({'foo' : 'zaa'}), '{"foo": "zaa"}'
|
Loading…
x
Reference in New Issue
Block a user