So siehts ganz gut aus !

This commit is contained in:
2019-04-03 17:44:16 +02:00
parent 3695b33c83
commit 0fe884c90a
6758 changed files with 530485 additions and 65 deletions

View File

@@ -0,0 +1,3 @@
exports[`test layout with shadowed block 1`] = `"<!-- layout.pug: root--><!-- index.pug: shadowed-->"`;
exports[`test layout with shadowed block 2`] = `"<!-- layout.pug: root--><!-- index.pug: shadowed-->"`;

4
node_modules/pug/test/shadowed-block/base.pug generated vendored Normal file
View File

@@ -0,0 +1,4 @@
block root
// base.pug: root
block shadowed
// base.pug: shadowed

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

@@ -0,0 +1,4 @@
extends ./layout.pug
block shadowed
// index.pug: shadowed

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

@@ -0,0 +1,14 @@
const pug = require('../../');
test('layout with shadowed 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();
});

6
node_modules/pug/test/shadowed-block/layout.pug generated vendored Normal file
View File

@@ -0,0 +1,6 @@
extends ./base.pug
block root
// layout.pug: root
block shadowed
// layout.pug: shadowed