[Pkg-javascript-commits] [node-mocks-http] 164/296: added; test for http-mock
Thorsten Alteholz
alteholz at moszumanska.debian.org
Mon Feb 8 18:13:32 UTC 2016
This is an automated email from the git hooks/post-receive script.
alteholz pushed a commit to branch master
in repository node-mocks-http.
commit 62fe2073d6eec6a8668f837d8c080d2d28538bad
Author: Johnny Estilles <johnny.estilles at agentia.asia>
Date: Mon Apr 6 15:05:40 2015 +0800
added; test for http-mock
---
test/lib/http-mock.spec.js | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/test/lib/http-mock.spec.js b/test/lib/http-mock.spec.js
new file mode 100644
index 0000000..9939a80
--- /dev/null
+++ b/test/lib/http-mock.spec.js
@@ -0,0 +1,21 @@
+'use strict';
+
+var chai = require('chai');
+var expect = chai.expect;
+
+var httpMock;
+
+describe('http-mock', function() {
+ before(function() {
+ httpMock = require('../../lib/http-mock');
+ });
+
+ it('should export .createRequest()', function() {
+ expect(httpMock.createRequest).to.be.a('function');
+ });
+
+ it('should export .createResponse()', function() {
+ expect(httpMock.createResponse).to.be.a('function');
+ });
+
+});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-mocks-http.git
More information about the Pkg-javascript-commits
mailing list