Skip to content
This repository has been archived by the owner on Oct 31, 2018. It is now read-only.

Commit

Permalink
Breaking: Remove originalSymlink hack
Browse files Browse the repository at this point in the history
  • Loading branch information
erikkemperman authored and phated committed May 5, 2017
1 parent 3b2c641 commit b515f33
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
4 changes: 0 additions & 4 deletions index.js
Expand Up @@ -22,10 +22,6 @@ function src(opt) {
function normalize(globFile, enc, callback) {
var file = File.isVinyl(globFile) ? globFile : new File(globFile);

if (globFile.originalSymlinkPath) {
file.path = globFile.originalSymlinkPath;
}

// Skip this file if since option is set and current file is too old
if (opt.since != null) {
var since = date(opt.since, file);
Expand Down
19 changes: 0 additions & 19 deletions test/index.js
Expand Up @@ -60,25 +60,6 @@ describe('.src()', function() {
], done);
});

it('sets path to originalSymlinkPath, if given', function(done) {
var file = new File({
path: inputPath,
originalSymlinkPath: symlinkPath,
});

function assert(files) {
expect(files.length).toEqual(1);
expect(files[0]).toBe(file);
expect(files[0].path).toEqual(symlinkPath);
}

pipe([
from.obj([file]),
prepare.src(),
concat(assert),
], done);
});

it('errors if since option is invalid (value)', function(done) {
var file = new File({
path: inputPath,
Expand Down

0 comments on commit b515f33

Please sign in to comment.