Skip to content

Instantly share code, notes, and snippets.

@@ -86,13 +86,14 @@ describe('Local File System Storage', function () {
it('can upload two different images with the same name without overwriting the first', function (done) {
// Sun Sep 08 2013 10:57
this.clock = sinon.useFakeTimers(new Date(2013, 8, 8, 10, 57).getTime());
- fs.exists.withArgs('content/images/2013/Sep/IMAGE.jpg').yields(true);
- fs.exists.withArgs('content/images/2013/Sep/IMAGE-1.jpg').yields(false);
+
+ fs.exists.withArgs(path.resolve('./content/images/2013/Sep/IMAGE.jpg')).yields(true);
+ fs.exists.withArgs(path.resolve('./content/images/2013/Sep/IMAGE-1.jpg')).yields(false);