Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tracker1 committed Mar 9, 2016
1 parent 98a5d13 commit 3a7510c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('gulp-header', function() {

function getFakeFile(fileContent){
return new File({
path: './test/fixture/file.js',
path: './test/fixture/file.txt',
cwd: './test/',
base: './test/fixture/',
contents: new Buffer(fileContent || '')
Expand All @@ -27,7 +27,7 @@ describe('gulp-header', function() {
function getFakeFileReadStream(){
return new File({
contents: es.readArray(['Hello world']),
path: './test/fixture/file2.js'
path: './test/fixture/file2.txt'
});
}

Expand All @@ -45,8 +45,8 @@ describe('gulp-header', function() {
should.exist(newFile.path);
should.exist(newFile.relative);
should.exist(newFile.contents);
newFile.path.should.equal('./test/fixture/file.js');
newFile.relative.should.equal('file.js');
newFile.path.should.equal('./test/fixture/file.txt');
newFile.relative.should.equal('file.txt');
newFile.contents.toString('utf8').should.equal('Hello world');
++file_count;
});
Expand Down Expand Up @@ -121,7 +121,7 @@ describe('gulp-header', function() {
''].join('\n'));
stream.on('data', function (newFile) {
should.exist(newFile.contents);
newFile.contents.toString('utf8').should.equal('file.js\n./test/fixture/file.js\nHello world');
newFile.contents.toString('utf8').should.equal('file.txt\n./test/fixture/file.txt\nHello world');
});
stream.once('end', done);

Expand All @@ -131,7 +131,7 @@ describe('gulp-header', function() {

it('multiple files should pass through', function (done) {
var headerText = 'use strict;',
stream = gulp.src('./test/fixture/*.js').pipe(header(headerText)),
stream = gulp.src('./test/fixture/*.txt').pipe(header(headerText)),
files = [];

stream.on('error', done);
Expand Down

0 comments on commit 3a7510c

Please sign in to comment.