LookAtMySuitBot/js/node_modules/mojangson/test/stringify.test.js

14 lines
372 B
JavaScript

/* eslint-env mocha */
const assert = require('assert')
const mojangson = require('../')
const data = require('./stringify_test_data.js')
describe('test mojangson.stringify', () => {
data.forEach(entry => {
it('should be equal', () => {
const results = mojangson.stringify(mojangson.parse(entry[0]))
assert.strictEqual(results, entry[1])
})
})
})