Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correct a ref in tests

  • Loading branch information...
commit 281c712f3caa236b4a2541a8d22e41ca11c507fc 1 parent 7dbf422
Cian Clarke authored
Showing with 6 additions and 7 deletions.
  1. +6 −7 test/tests.js
13 test/tests.js
View
@@ -8,8 +8,8 @@ gallery = require('../gallery.js');
* Test the Exif module
*/
var aPhoto = { name: 'SomePhoto', path: 'photos/lake.jpg' };
+console.log('[exif] Starting exif tests'.yellow);
exif("test/" + aPhoto.path, aPhoto, function(err, photo){
- console.log('[exif] Starting exif tests'.yellow);
assert.equal(photo.name, aPhoto.name);
assert.equal(photo.path, aPhoto.path);
assert.ok(photo.exif);
@@ -26,8 +26,8 @@ exif("test/" + aPhoto.path, aPhoto, function(err, photo){
* Test the Gallery module
*/
var galleryParams = {static: 'test', directory: '/photos', name: 'Test Gallery'};
+console.log('[gallery] Starting gallery tests'.yellow);
gallery.init(galleryParams, function(err, album){
- console.log('[gallery] Starting gallery tests'.yellow);
assert.ok(!err);
assert.equal(album.name, galleryParams.name);
assert.equal(album.albums.length, 1); // OK with empty directories being excluded - bit lazy..
@@ -37,15 +37,14 @@ gallery.init(galleryParams, function(err, album){
console.log('[gallery] Pass ✓'.green);
var req = {
- photo: '_MG_3169.jpg',
- album: '/Co. Dublin'
+ photo: 'lake.jpg',
+ album: 'album1'
};
+ console.log('[gallery.getPhoto()] Starting gallery tests'.yellow);
gallery.getPhoto(req, function(err, photo){
- console.log('[gallery.getPhoto()] Starting gallery tests'.yellow);
- console.log(err);
assert.ok(!err);
console.log('[gallery.getPhoto()] Pass ✓'.green);
});
-});
+});
Please sign in to comment.
Something went wrong with that request. Please try again.