Skip to content

Commit 6d074c9

Browse files
committed
Separating theme from core, test standard updates
1 parent 8169071 commit 6d074c9

File tree

8 files changed

+7
-55
lines changed

8 files changed

+7
-55
lines changed

.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
coverage/
1+
coverage/
2+
test/
3+
CHANGELOG.md

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const log = require('./libs/log.js');
1111
* @param {String} file - path to output file
1212
*/
1313
const generateSite = async function generateSite(config, theme, file) {
14-
const template = theme || `${__dirname}/libs/template.html`;
14+
const template = theme || `${__dirname}/node_modules/hubblejs-default-theme/index.html`;
1515
const output = file || './index.html';
1616

1717
try {

libs/template.html

Lines changed: 0 additions & 52 deletions
This file was deleted.

test/integration/queryGithub.js renamed to test/integration/queryGithub.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const nock = require('nock');
33
const createQuery = require('../../libs/createQuery');
44
const queryGithub = require('../../libs/queryGithub');
55

6+
// Query Github
67
describe('queryGithub()', function () {
78
const query = createQuery(config.github);
89
const response = {
@@ -17,7 +18,7 @@ describe('queryGithub()', function () {
1718
.post('/graphql')
1819
.reply(200, response);
1920
});
20-
21+
2122
it('resolve with data from the Github API', function () {
2223
return queryGithub(config, query).then(function (res) {
2324
expect(res).to.have.property('data');

test/test.js

Whitespace-only changes.
File renamed without changes.

test/unit/renderTemplate.js renamed to test/unit/renderTemplate.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const path = require('path');
33
const { expect, templateData, errHandler } = require('../utilities.js');
44
const renderTemplate = require('../../libs/renderTemplate.js');
55

6+
// Render Template
67
describe('renderTemplate()', function () {
78
const absPath = __dirname.split('test')[0];
89
const output = path.join(absPath, 'test/fixtures/index.test.html');
File renamed without changes.

0 commit comments

Comments
 (0)