source: node_modules/rc/test/ini.js@ 62b2964

finki-main main
Last change on this file since 62b2964 was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago

Initial commit

  • Property mode set to 100644
File size: 312 bytes
Line 
1var cc =require('../lib/utils')
2var INI = require('ini')
3var assert = require('assert')
4
5function test(obj) {
6
7 var _json, _ini
8 var json = cc.parse (_json = JSON.stringify(obj))
9 var ini = cc.parse (_ini = INI.stringify(obj))
10 console.log(_ini, _json)
11 assert.deepEqual(json, ini)
12}
13
14
15test({hello: true})
16
Note: See TracBrowser for help on using the repository browser.