Skip to content

Commit

Permalink
[enb#425] [enb#425] ☔︎ fixed test for techs/write-file
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelpower committed Jan 19, 2016
1 parent 454f4ae commit e12c220
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/techs/write-file.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ describe('techs/write-file', function () {

beforeEach(function () {
mockFS({
bundles: mockFS.directory({
bundle: mockFS.directory({
mode: 0755
})
});

bundle = new MockNode('bundles/bundle');
bundle = new MockNode('bundle');
resolveSpy = sinon.spy(bundle, 'resolveTarget');
rejectSpy = sinon.spy(bundle, 'rejectTarget');
});
Expand Down Expand Up @@ -42,7 +42,10 @@ describe('techs/write-file', function () {
})
.should.be.fulfilled
.then(function () {
mockFS.statSync('bundles/bundle/bundle.txt').isFile().should.be.ok;

// При оспользовании "mockFS.fs().statSync" выскакивает ошибка
// mockFS.fs().statSync('bundle/bundle.txt').isFile().should.be.ok;

resolveSpy.should.calledWith('bundle.txt');
});
});
Expand Down

0 comments on commit e12c220

Please sign in to comment.