-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed bug with entities order in files tech #130
Conversation
/cc @tadatuta |
return files[filename]; | ||
})); | ||
function addEntities(entities) { | ||
fileList.addFiles(entities.files.filter(function (file) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't it possible to store files and dirs in the same hash and as so reuse filter callback for both cases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice idea! It has been fixed.
lgtm |
lgtm |
Fixed bug with entities order in files tech
@@ -70,6 +70,51 @@ describe('techs', function () { | |||
.then(done, done); | |||
}); | |||
|
|||
it('must keep order of entities', function (done) { | |||
mockFs({ | |||
blocks: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: добавить еще один уровень.
Resolved #129