1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-01-19 06:18:16 +01:00

comment out html serialize tests

This commit is contained in:
Ian Storm Taylor 2016-07-18 12:21:35 -07:00
parent 2f0f8026a8
commit d3bca036f8

View File

@ -29,21 +29,21 @@ describe('serializers', () => {
}
})
describe.skip('serialize()', () => {
const dir = resolve(__dirname, './fixtures/html/serialize')
const tests = fs.readdirSync(dir)
// describe('serialize()', () => {
// const dir = resolve(__dirname, './fixtures/html/serialize')
// const tests = fs.readdirSync(dir)
for (const test of tests) {
it(test, () => {
const innerDir = resolve(dir, test)
const html = new Html(require(innerDir).default)
const input = require(resolve(innerDir, 'input.js')).default
const expected = fs.readFileSync(resolve(innerDir, 'output.html'), 'utf8')
const serialized = html.serialize(input)
strictEqual(serialized, expected.trim())
})
}
})
// for (const test of tests) {
// it(test, () => {
// const innerDir = resolve(dir, test)
// const html = new Html(require(innerDir).default)
// const input = require(resolve(innerDir, 'input.js')).default
// const expected = fs.readFileSync(resolve(innerDir, 'output.html'), 'utf8')
// const serialized = html.serialize(input)
// strictEqual(serialized, expected.trim())
// })
// }
// })
})
describe('plain', () => {