From f7c064c7ea703d2746ee442726beaa6310a9a329 Mon Sep 17 00:00:00 2001 From: ismay Date: Fri, 7 Aug 2015 17:37:19 +0200 Subject: [PATCH] Refactor partials tests --- .../fixtures/{partials => partials-multiple}/build/index.html | 0 .../{partials => partials-multiple}/expected/index.html | 0 .../{partials => partials-multiple}/layouts/layout.html | 0 .../{partials => partials-multiple}/layouts/partials/nav.html | 0 test/fixtures/{partials => partials-multiple}/src/index.html | 0 test/index.js | 4 ++-- 6 files changed, 2 insertions(+), 2 deletions(-) rename test/fixtures/{partials => partials-multiple}/build/index.html (100%) rename test/fixtures/{partials => partials-multiple}/expected/index.html (100%) rename test/fixtures/{partials => partials-multiple}/layouts/layout.html (100%) rename test/fixtures/{partials => partials-multiple}/layouts/partials/nav.html (100%) rename test/fixtures/{partials => partials-multiple}/src/index.html (100%) diff --git a/test/fixtures/partials/build/index.html b/test/fixtures/partials-multiple/build/index.html similarity index 100% rename from test/fixtures/partials/build/index.html rename to test/fixtures/partials-multiple/build/index.html diff --git a/test/fixtures/partials/expected/index.html b/test/fixtures/partials-multiple/expected/index.html similarity index 100% rename from test/fixtures/partials/expected/index.html rename to test/fixtures/partials-multiple/expected/index.html diff --git a/test/fixtures/partials/layouts/layout.html b/test/fixtures/partials-multiple/layouts/layout.html similarity index 100% rename from test/fixtures/partials/layouts/layout.html rename to test/fixtures/partials-multiple/layouts/layout.html diff --git a/test/fixtures/partials/layouts/partials/nav.html b/test/fixtures/partials-multiple/layouts/partials/nav.html similarity index 100% rename from test/fixtures/partials/layouts/partials/nav.html rename to test/fixtures/partials-multiple/layouts/partials/nav.html diff --git a/test/fixtures/partials/src/index.html b/test/fixtures/partials-multiple/src/index.html similarity index 100% rename from test/fixtures/partials/src/index.html rename to test/fixtures/partials-multiple/src/index.html diff --git a/test/index.js b/test/index.js index 73e8d46..4c8be9a 100644 --- a/test/index.js +++ b/test/index.js @@ -102,7 +102,7 @@ describe('metalsmith-layouts', function(){ }); it('should be capable of processing partials multiple times', function(done){ - var instance = Metalsmith('test/fixtures/partials') + var instance = Metalsmith('test/fixtures/partials-multiple') .use(layouts({ engine: 'handlebars', partials: {nav: 'partials/nav'} @@ -116,7 +116,7 @@ describe('metalsmith-layouts', function(){ if (err) { return done(err); } - equal('test/fixtures/partials/expected', 'test/fixtures/partials/build'); + equal('test/fixtures/partials-multiple/expected', 'test/fixtures/partials-multiple/build'); done(); }); });