Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added jobHandler spec file.

  • Loading branch information...
commit 58bd0b84e2e43eeb26910d92c328926e4a41e278 1 parent c1a3893
@tieleman tieleman authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 test/job-handler-spec.js
View
21 test/job-handler-spec.js
@@ -0,0 +1,21 @@
+var jobHandler = require('../lib/job-handler.js'),
+ Job = require('../lib/job.js');
+
+describe("A job handler", function() {
+ it("should be able to find a job", function() {
+ spyOn(Job, "find");
+ var callbackSpy = jasmine.createSpy("callback");
+
+ jobHandler.find('123', callbackSpy);
+
+ expect(Job.find).toHaveBeenCalledWith('123', callbackSpy);
+ });
+
+ it("should be able to return the free slots", function() {
+
+ });
+
+ it("should process a job request", function() {
+
+ });
+});
Please sign in to comment.
Something went wrong with that request. Please try again.