Files
pugz/tests/sample_data/pug/test/duplicate-block/index.test.js

11 lines
346 B
JavaScript
Raw Normal View History

2026-01-24 23:53:19 +05:30
const pug = require('../../');
test('layout with duplicate block', () => {
const outputWithAjax = pug.renderFile(__dirname + '/index.pug', {ajax: true});
const outputWithoutAjax = pug.renderFile(__dirname + '/index.pug', {
ajax: false,
});
expect(outputWithAjax).toMatchSnapshot();
expect(outputWithoutAjax).toMatchSnapshot();
});