Skip to content

Commit

Permalink
Fix code style error
Browse files Browse the repository at this point in the history
'check' was used before it was defined.
  • Loading branch information
TheDancingCode committed Jan 3, 2018
1 parent bdfc359 commit 457db2e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/rename.spec.js
Expand Up @@ -186,6 +186,13 @@ describe('gulp-rename', function () {
var file1;
var file2;

function check() {
file1.path.should.equal(Path.resolve('test/fixtures/hello-1.txt'));
file2.path.should.equal(Path.resolve('test/fixtures/hello-2.txt'));

return done();
}

pipe1
.on('data', function (file) {
file1 = file;
Expand All @@ -209,13 +216,6 @@ describe('gulp-rename', function () {
return check();
}
});

function check() {
file1.path.should.equal(Path.resolve('test/fixtures/hello-1.txt'));
file2.path.should.equal(Path.resolve('test/fixtures/hello-2.txt'));

return done();
}
});
});

Expand Down

0 comments on commit 457db2e

Please sign in to comment.