From 00107cca5cd022a2b07df0f44811b5c37491bb79 Mon Sep 17 00:00:00 2001 From: tomgallacher Date: Mon, 20 Jun 2011 22:28:23 +0100 Subject: [PATCH] Adding expresso tests --- package.json | 7 +++ test/fixtures/test.js | 1 + test/fixtures/test.js.gzip | Bin 0 -> 35 bytes test/fixtures/user.gzip | Bin 0 -> 69 bytes test/fixtures/user.json | 4 ++ test/staticGzipTest.js | 92 +++++++++++++++++++++++++++++++++++++ 6 files changed, 104 insertions(+) create mode 100644 test/fixtures/test.js create mode 100644 test/fixtures/test.js.gzip create mode 100644 test/fixtures/user.gzip create mode 100644 test/fixtures/user.json create mode 100644 test/staticGzipTest.js diff --git a/package.json b/package.json index a3ed1d0..8fbd3fe 100644 --- a/package.json +++ b/package.json @@ -15,5 +15,12 @@ { "compress" : "0.1.9", "mime" : "1.2.2" + }, +"devDependencies": + { + "expresso": "0.7.6", + "should": "0.2.1", + "connect": "1.4.4", + "express": "2.3.11" } } diff --git a/test/fixtures/test.js b/test/fixtures/test.js new file mode 100644 index 0000000..a6f4e06 --- /dev/null +++ b/test/fixtures/test.js @@ -0,0 +1 @@ +alert("hello"); \ No newline at end of file diff --git a/test/fixtures/test.js.gzip b/test/fixtures/test.js.gzip new file mode 100644 index 0000000000000000000000000000000000000000..7eed1582c07c17c7f9da00b5681c13cd6501634f GIT binary patch literal 35 mcmb2|=3oE=X74kex>^?lPI;U?c{2Rc7B+_N%>ldlfpP${jte>f literal 0 HcmV?d00001 diff --git a/test/fixtures/user.gzip b/test/fixtures/user.gzip new file mode 100644 index 0000000000000000000000000000000000000000..b7322699428adbc59efacc6934f7229054b4108e GIT binary patch literal 69 zcmb2|=3oE==GD(0g`Dy};~TmuC_wAvd0+oCCp~@6dFTdRV)UA_Tun56TEo**r%!*K X@bs(E=S!ca?#N=C^)TeA15h^r