mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
17 lines
312 B
JavaScript
17 lines
312 B
JavaScript
|
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})
|
||
|
|