14 lines
373 B
JavaScript
14 lines
373 B
JavaScript
/* 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])
|
|
})
|
|
})
|
|
})
|