-
Couldn't load subscription status.
- Fork 54
Support node 4 #438
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
Support node 4 #438
Conversation
test/lib/make/init.js
Outdated
| }); | ||
|
|
||
| expect(require.cache[modulePath]).to.be.not.equal('foo'); | ||
| expect(clearRequire.calledWith('/path/to/project/.enb/make.js')).to.be.true; |
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.
expect(clearRequire).to.be.calledWith() ?
586d355 to
7d0dbf6
Compare
3933b8b to
c341519
Compare
| 'make.js': '' | ||
| } | ||
| } | ||
| }); |
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.
А mockFs({ path.normalize('full/path/to/file.js'): '' }); не работает?
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.
Исправил.
А тут зачем path.normalize?
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.
Хз. если под вендой окей, то мне ок)
d1dc0af to
da2c498
Compare
test/lib/make/init.js
Outdated
| projectConfig.setLanguages(['ru']); | ||
| }); | ||
| mockRequire(path.normalize('/path/to/project/.bem/make.js'), function (projectConfig) { | ||
| projectConfig.setLanguages(['ru']); |
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.
Should be 'en'
da2c498 to
95cd216
Compare
No description provided.