LookAtMySuitBot/js/node_modules/mojangson/test/simplify.test.js

14 lines
373 B
JavaScript
Raw Normal View History

2023-12-24 20:08:39 -05:00
/* eslint-env mocha */
const assert = require('assert')
const mojangson = require('../')
const data = require('./simplify_test_data.js')
describe('test mojangson.simplify', () => {
data.forEach(entry => {
it('should be equal', () => {
const results = mojangson.simplify(mojangson.parse(entry[0]))
assert.deepStrictEqual(results, entry[1])
})
})
})