DiscofyAPI/node_modules/rc/test/ini.js

17 lines
312 B
JavaScript
Raw Normal View History

2021-03-25 17:23:36 +01:00
var cc =require('../lib/utils')
var INI = require('ini')
var assert = require('assert')
function test(obj) {
var _json, _ini
var json = cc.parse (_json = JSON.stringify(obj))
var ini = cc.parse (_ini = INI.stringify(obj))
console.log(_ini, _json)
assert.deepEqual(json, ini)
}
test({hello: true})