This repository has been archived by the owner on Jun 18, 2020. It is now read-only.
forked from sintaxi/harp
-
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.
Merge pull request sintaxi#454 from jvandemo/feat/expose-middleware
Expose middleware when Harp is used as library
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
var should = require("should") | ||
var harp = require('../lib'); | ||
var middleware = require('../lib/middleware'); | ||
|
||
describe("harp as a library", function() { | ||
|
||
it("should expose a mount function", function() { | ||
should(harp.mount).be.type('function'); | ||
}); | ||
|
||
it("should expose the middleware", function() { | ||
should(harp.middleware).be.equal(middleware); | ||
}); | ||
|
||
}); |