This repository has been archived by the owner on Mar 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
options
; we'll control recursiveness through explicitly supp…
…lying glob patterns. Also made `microboot()` and `microboot.up()` synonymous.
- Loading branch information
Jack Williams
committed
Jun 17, 2016
1 parent
d178ad2
commit a2c85d0
Showing
6 changed files
with
12 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,4 @@ | ||
function Microboot () { | ||
this.opts = { | ||
no_recursive: false | ||
} | ||
var up = require('./lib/up') | ||
up.up = up | ||
|
||
return this | ||
} | ||
|
||
Microboot.prototype.up = require('./lib/up') | ||
Microboot.prototype.options = require('./lib/options') | ||
|
||
module.exports = new Microboot() | ||
module.exports = up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
var microboot = require('..') | ||
|
||
describe('microboot', function () { | ||
it('should export up function', function () { | ||
expect(microboot.up).to.be.a('function') | ||
it('should export a function', function () { | ||
expect(microboot).to.be.a('function') | ||
}) | ||
|
||
it('should export options function', function () { | ||
expect(microboot.options).to.be.a('function') | ||
}) | ||
|
||
it('should export opts object', function () { | ||
expect(microboot.opts).to.be.an('object') | ||
it('should export "up" as a circular reference', function () { | ||
expect(microboot.up).to.equal(microboot) | ||
}) | ||
}) |