Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

map-path.test.js updated to test for trailing slash

  • Loading branch information...
commit 74e0163e1c14e1450357bcc3e5315c6dd2422bf1 1 parent 3651804
@nicjansma nicjansma authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 test/map-path.test.js
View
16 test/map-path.test.js
@@ -89,6 +89,22 @@ describe('versionator', function() {
});
+ it('should work with a trailing slash', function(done) {
+ var fileList = [
+ tmpPath + '/c',
+ tmpPath + '/sub/a'
+ ];
+ versionator.createMapFromPath(tmpPath + '/', { fileList: fileList}, function(error, results) {
+
+ var a = {
+ '/c': '/e509465ef513154988e088d6ad3c21bf/c',
+ '/sub/a': '/sub/49f68a5c8493ec2c0bf489821c21fc3b/a' }.should.eql(results);
+
+ done();
+ });
+
+ });
+
});
after(function(done) {
Please sign in to comment.
Something went wrong with that request. Please try again.