Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jonschlinkert committed Jun 3, 2016
1 parent 5e30ace commit f61a803
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/plugins.js
@@ -1,6 +1,5 @@
'use strict';

var path = require('path');
var plugins = require('lazy-cache')(require);
var fn = require;
require = plugins;
Expand All @@ -14,6 +13,7 @@ require('base-argv', 'argv');
require('base-cli-process', 'cli');
require('base-config', 'config');
require('base-runtimes', 'runtimes');
require = fn;

/**
* Expose `plugins`
Expand Down
4 changes: 3 additions & 1 deletion test/_suite.js
@@ -1,5 +1,6 @@
'use strict';

var assemble = require('..');
var runner = require('base-test-runner')();
var suite = require('base-test-suite');

Expand All @@ -8,7 +9,8 @@ var suite = require('base-test-suite');
*/

runner.on('templates', function(file) {
require(file.path)(require('..'));
require(file.path)(assemble);
});

runner.addFiles('templates', suite.test.templates);
runner.addFiles('templates', suite.test['assemble-core']);
3 changes: 1 addition & 2 deletions test/app.cli.js
Expand Up @@ -2,8 +2,7 @@

require('mocha');
var assert = require('assert');
var support = require('./support');
var App = support.resolve();
var App = require('..');
var app;

describe('app.cli', function() {
Expand Down
4 changes: 2 additions & 2 deletions test/app.pages.js
Expand Up @@ -21,14 +21,14 @@ describe('.pages()', function() {
'b.hbs': {path: 'b.hbs', contents: new Buffer('b')},
'c.hbs': {path: 'c.hbs', contents: new Buffer('c')},
});
assert(Object.keys(app.views.pages).length === 3);
assert.equal(Object.keys(app.views.pages).length, 3);
});
});

describe('load pages', function() {
it('should load pages onto `app.views.pages`:', function() {
app.pages('test/fixtures/pages/*.hbs');
assert(Object.keys(app.views.pages).length === 3);
assert.equal(Object.keys(app.views.pages).length, 3);
});
});
});
9 changes: 4 additions & 5 deletions test/app.store.js
Expand Up @@ -6,14 +6,13 @@ var fs = require('fs');
var path = require('path');
var assert = require('assert');
var store = require('base-store');
var support = require('./support');
var assemble = support.resolve();
var App = require('..');
var app;

describe('store', function() {
describe('methods', function() {
beforeEach(function() {
app = assemble({cli: true});
app = new App({cli: true});
app.use(store());
app.store.create('app-data-tests');
});
Expand Down Expand Up @@ -154,7 +153,7 @@ describe('store', function() {

describe('create', function() {
beforeEach(function() {
app = assemble({cli: true});
app = new App({cli: true});
app.use(store());
app.store.create('abc');

Expand Down Expand Up @@ -225,7 +224,7 @@ describe('create', function() {

describe('events', function() {
beforeEach(function() {
app = assemble({cli: true});
app = new App({cli: true});
app.use(store());
app.store.create('abc');
});
Expand Down

0 comments on commit f61a803

Please sign in to comment.