Permalink
Browse files

remove qs from `mapped` - test

issue #17
issue #14
  • Loading branch information...
1 parent 6594f88 commit 52ab103a495f9f040c1742734e2714d461c18c0e @mpal9000 mpal9000 committed Dec 18, 2013
Showing with 12 additions and 1 deletion.
  1. +12 −1 test/mapped-versionator.test.js
@@ -126,6 +126,17 @@ describe('versionator', function() {
done()
})
})
+
+ it('req.url mapped url (with query string) is mapped correctly', function(done) {
+
+ var app = startServer({'/images/sprite.png': '/images/VERSIONHASH/sprite.png' }, 9901).app
+
+ request('http://localhost:9901/images/VERSIONHASH/sprite.png?key=val', function(error, response, data) {
+ data.should.eql('/images/sprite.png?key=val')
+ app.close()
+ done()
+ })
+ })
it('req.url mapped url is mapped correctly after hash change', function(done) {
@@ -144,4 +155,4 @@ describe('versionator', function() {
})
-})
+})

0 comments on commit 52ab103

Please sign in to comment.