mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-31 12:30:11 +02:00
comment out html serialize tests
This commit is contained in:
@@ -29,21 +29,21 @@ describe('serializers', () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
describe.skip('serialize()', () => {
|
// describe('serialize()', () => {
|
||||||
const dir = resolve(__dirname, './fixtures/html/serialize')
|
// const dir = resolve(__dirname, './fixtures/html/serialize')
|
||||||
const tests = fs.readdirSync(dir)
|
// const tests = fs.readdirSync(dir)
|
||||||
|
|
||||||
for (const test of tests) {
|
// for (const test of tests) {
|
||||||
it(test, () => {
|
// it(test, () => {
|
||||||
const innerDir = resolve(dir, test)
|
// const innerDir = resolve(dir, test)
|
||||||
const html = new Html(require(innerDir).default)
|
// const html = new Html(require(innerDir).default)
|
||||||
const input = require(resolve(innerDir, 'input.js')).default
|
// const input = require(resolve(innerDir, 'input.js')).default
|
||||||
const expected = fs.readFileSync(resolve(innerDir, 'output.html'), 'utf8')
|
// const expected = fs.readFileSync(resolve(innerDir, 'output.html'), 'utf8')
|
||||||
const serialized = html.serialize(input)
|
// const serialized = html.serialize(input)
|
||||||
strictEqual(serialized, expected.trim())
|
// strictEqual(serialized, expected.trim())
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('plain', () => {
|
describe('plain', () => {
|
||||||
|
Reference in New Issue
Block a user