From cb5c2a050cd07796adf7393300b93c50a9300cab Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Mon, 14 Aug 2017 16:36:30 +0100 Subject: [PATCH] Rename the patterns source to represent this repo --- src/sources/{patterns.js => lookAndFeel.js} | 0 src/views.js | 6 +++--- test/sources/{patterns.test.js => lookAndFeel.test.js} | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) rename src/sources/{patterns.js => lookAndFeel.js} (100%) rename test/sources/{patterns.test.js => lookAndFeel.test.js} (57%) diff --git a/src/sources/patterns.js b/src/sources/lookAndFeel.js similarity index 100% rename from src/sources/patterns.js rename to src/sources/lookAndFeel.js diff --git a/src/views.js b/src/views.js index 86b85e7..a70c383 100644 --- a/src/views.js +++ b/src/views.js @@ -1,5 +1,5 @@ const govukTemplate = require('./sources/govukTemplate'); -const patterns = require('./sources/patterns'); +const lookAndFeel = require('./sources/lookAndFeel'); const ensureArray = maybeArray => { if (typeof maybeArray === 'string') return [maybeArray]; @@ -12,10 +12,10 @@ const configureViews = (app, extraViews) => { return app.set('views', [ govukTemplate.paths.templates, - patterns.paths.templates, + lookAndFeel.paths.templates, ...userViews, ...existingViews ]); }; -module.exports = { configureViews }; \ No newline at end of file +module.exports = { configureViews }; diff --git a/test/sources/patterns.test.js b/test/sources/lookAndFeel.test.js similarity index 57% rename from test/sources/patterns.test.js rename to test/sources/lookAndFeel.test.js index 1fdee73..e53295c 100644 --- a/test/sources/patterns.test.js +++ b/test/sources/lookAndFeel.test.js @@ -1,17 +1,17 @@ const { expect } = require('./../util/chai'); -const patterns = require('./../../src/sources/patterns'); +const lookAndFeel = require('./../../src/sources/lookAndFeel'); -describe('sources/patterns', () => { +describe('sources/lookAndFeel', () => { describe('.paths', () => { it('.root => path to the module root', () => { - expect(patterns.paths.root) + expect(lookAndFeel.paths.root) .to.be.a.directory() .and.include.contents(['package.json']); }); it('.templates => path to the templates directory', () => { - expect(patterns.paths.templates) + expect(lookAndFeel.paths.templates) .to.be.a.directory() - .and.include.contents(['patterns']); + .and.include.contents(['layouts', 'components']); }); }); });