This commit is contained in:
synth-ruiner
2017-12-22 17:22:08 +00:00
commit 495f1d958e
3484 changed files with 393731 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
exports[`test layout with duplicate block 1`] = `"<div>Hello World</div>"`;
exports[`test layout with duplicate block 2`] = `"<!DOCTYPE html><html><head></head><body><div>Hello World</div></body></html>"`;

4
node_modules/pug/test/duplicate-block/index.pug generated vendored Normal file
View File

@@ -0,0 +1,4 @@
extends ./layout-with-duplicate-block.pug
block content
div Hello World

14
node_modules/pug/test/duplicate-block/index.test.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
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();
});

View File

@@ -0,0 +1,8 @@
if ajax
block content
else
doctype html
html
head
body
block content