Permalink
Browse files

CS fixes

  • Loading branch information...
1 parent 5799854 commit e974645f75191f67f5bc125358dc03a35c5debd6 @ithinkihaveacat committed May 21, 2013
Showing with 7 additions and 10 deletions.
  1. +1 −1 lib/fishback.js
  2. +1 −1 test/assurt.js
  3. +0 −1 test/cache-hit.js
  4. +1 −1 test/filter.js
  5. +1 −1 test/http-only-if-cached.js
  6. +1 −1 test/http-public.js
  7. +2 −2 test/http-simple.js
  8. +0 −2 test/lib.js
View
@@ -132,7 +132,7 @@ function responseToBuffer(clientResponse, callback) {
}
function createCachingProxy(cache, client) {
- cache = cache || new CacheMemory();
+ cache = cache || new Memory();
client = client || new Client();
// Save any new responses emitted by the client to the cache
View
@@ -47,7 +47,7 @@ function once(callback, context) {
return function () {
count++;
return callback.apply(context, arguments);
- }
+ };
}
function never(callback, context) {
View
@@ -4,7 +4,6 @@
var lib = require("./lib");
var http = require("./http");
-var assert = require("assert");
var assurt = require("./assurt");
lib.getCacheList(function (cache, next) {
View
@@ -12,7 +12,7 @@ var fishback = require("../lib/fishback");
var response = { statusCode: 200, headers: { "cache-control": "max-age=60, private" }, data: [ "Hello, World" ]};
var expected = { headers: { "foo": "bar", "cache-control": "max-age=60, public" }, data: "Hello, World" };
-lib.getCacheList(function (cache, next) {
+lib.getCacheList(function (cache) {
var req = new http.ServerRequest({ url: "/", method: "GET" });
var res = new http.ServerResponse();
@@ -10,7 +10,7 @@ var fishback = require("../lib/fishback");
var NOW = 198025200000;
-lib.getCacheList(function (cache, next) {
+lib.getCacheList(function (cache) {
(function () {
View
@@ -130,7 +130,7 @@ lib.getCacheList(function (cache) {
},
- function (callback) {
+ function () {
cache.close();
}
View
@@ -18,7 +18,7 @@ var response = {
data: [ "Hello, World!\n" ]
};
-lib.getCacheList(function (cache, next) {
+lib.getCacheList(function (cache) {
var client = new fishback.Client(null, null, {
request: function (options, callback) {
@@ -88,7 +88,7 @@ lib.getCacheList(function (cache, next) {
req.fire();
},
- function (next) {
+ function () {
cache.close();
}
View
@@ -185,8 +185,6 @@ function getCacheList(callback) {
}
}
- // _getCacheList([ getCacheMemory, getCacheMongoDb ]);
- // _getCacheList([ getCacheMemory ]);
_getCacheList([ getCacheMemory, getCacheMemcached ]);
}

0 comments on commit e974645

Please sign in to comment.