Skip to content

Commit

Permalink
Moved stub of fs.lstatSync to the test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Piechaczek committed Sep 11, 2018
1 parent eab13b9 commit 52e5dca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/commands/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ describe( 'commands/sync', () => {
exec: sinon.stub(),
fs: {
existsSync: sinon.stub( fs, 'existsSync' ),
lstatSync: sinon.stub( fs, 'lstatSync' ),
readdirSync: sinon.stub( fs, 'readdirSync' )
},
path: {
Expand Down Expand Up @@ -324,6 +323,8 @@ describe( 'commands/sync', () => {

describe( 'afterExecute()', () => {
it( 'informs about number of processed packages and differences between packages in directory and defined in mgit.json', () => {
stubs.fs.lstatSync = sinon.stub( fs, 'lstatSync' );

const consoleLog = sinon.stub( console, 'log' );

const processedPackages = new Set();
Expand Down

0 comments on commit 52e5dca

Please sign in to comment.