Skip to content

Commit

Permalink
Update: Add test from gulp-sourcemaps/gulp-sourcemaps#157
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jun 17, 2017
1 parent dfd166f commit 650d7b7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/write.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,4 +461,12 @@ describe('write', function() {
done(err);
});
});

it('should create shortest path to file in sourceMap#file', function(done) {
var file = makeNestedFile();
sourcemaps.write(file, { path: 'dir1/maps' }, function(err, updatedFile) {
expect(updatedFile.sourceMap.file).toEqual('../../../dir2/helloworld.js');
done(err);
});
});
});

0 comments on commit 650d7b7

Please sign in to comment.