Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sondr3 committed Jul 28, 2016
1 parent 239fd32 commit 7ba4b49
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 33 deletions.
4 changes: 1 addition & 3 deletions test/gulp.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,14 @@ test('creates comment about creation', () => {

test('creates gulp task files', () => {
assert.file([
'gulp/tasks/browsersync.js',
'gulp/tasks/assets.js',
'gulp/tasks/build.js',
'gulp/tasks/clean.js',
'gulp/tasks/copy.js',
'gulp/tasks/fonts.js',
'gulp/tasks/html.js',
'gulp/tasks/images.js',
'gulp/tasks/inject.js',
'gulp/tasks/scripts.js',
'gulp/tasks/style.js',
'gulp/tasks/uploading.js'
]);
});
8 changes: 3 additions & 5 deletions test/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,13 @@ test('creates comment about creation', () => {

test('creates gulp task files, but not build.js', () => {
assert.file([
'gulp/tasks/browsersync.js',
'gulp/tasks/assets.js',
'gulp/tasks/clean.js',
'gulp/tasks/copy.js',
'gulp/tasks/fonts.js',
'gulp/tasks/html.js',
'gulp/tasks/images.js',
'gulp/tasks/inject.js',
'gulp/tasks/scripts.js',
'gulp/tasks/style.js',
'gulp/tasks/uploading.js'
]);
});
Expand All @@ -63,6 +61,6 @@ test('does not create uploading credentials', () => {
});

test('gulp/tasks/scripts.js does not contain babel', () => {
assert.noFileContent('gulp/tasks/scripts.js', 'const babel');
assert.noFileContent('gulp/tasks/scripts.js', '.pipe(babel');
assert.noFileContent('gulp/tasks/assets.js', 'const babel');
assert.noFileContent('gulp/tasks/assets.js', '.pipe(babel');
});
8 changes: 3 additions & 5 deletions test/update/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,23 @@ test('creates comment about creation', () => {

test('creates gulp task files, but not build.js', () => {
assert.file([
'gulp/tasks/browsersync.js',
'gulp/tasks/assets.js',
'gulp/tasks/clean.js',
'gulp/tasks/copy.js',
'gulp/tasks/fonts.js',
'gulp/tasks/html.js',
'gulp/tasks/images.js',
'gulp/tasks/inject.js',
'gulp/tasks/scripts.js',
'gulp/tasks/style.js',
'gulp/tasks/uploading.js'
]);
});

test('gulp/tasks/scripts.js does not contain babel', () => {
test('gulp/tasks/assets.js does not contain babel', () => {
[
'const babel',
'.pipe(babel'
].forEach(field => {
assert.noFileContent('gulp/tasks/scripts.js', field);
assert.noFileContent('gulp/tasks/assets.js', field);
});
});

Expand Down
8 changes: 3 additions & 5 deletions test/update/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,23 @@ test('creates comment about creation', () => {

test('creates gulp task files, but not build.js', () => {
assert.file([
'gulp/tasks/browsersync.js',
'gulp/tasks/assets.js',
'gulp/tasks/clean.js',
'gulp/tasks/copy.js',
'gulp/tasks/fonts.js',
'gulp/tasks/html.js',
'gulp/tasks/images.js',
'gulp/tasks/inject.js',
'gulp/tasks/scripts.js',
'gulp/tasks/style.js',
'gulp/tasks/uploading.js'
]);
});

test('gulp/tasks/scripts.js does not contain babel', () => {
test('gulp/tasks/assets.js does not contain babel', () => {
[
'const babel',
'.pipe(babel'
].forEach(field => {
assert.fileContent('gulp/tasks/scripts.js', field);
assert.fileContent('gulp/tasks/assets.js', field);
});
});

Expand Down
8 changes: 3 additions & 5 deletions test/update/ghpages.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,23 @@ test('creates comment about creation', () => {

test('creates gulp task files, but not build.js', () => {
assert.file([
'gulp/tasks/browsersync.js',
'gulp/tasks/assets.js',
'gulp/tasks/clean.js',
'gulp/tasks/copy.js',
'gulp/tasks/fonts.js',
'gulp/tasks/html.js',
'gulp/tasks/images.js',
'gulp/tasks/inject.js',
'gulp/tasks/scripts.js',
'gulp/tasks/style.js',
'gulp/tasks/uploading.js'
]);
});

test('gulp/tasks/scripts.js does not contain babel', () => {
test('gulp/tasks/assets.js does not contain babel', () => {
[
'const babel',
'.pipe(babel'
].forEach(field => {
assert.noFileContent('gulp/tasks/scripts.js', field);
assert.noFileContent('gulp/tasks/assets.js', field);
});
});

Expand Down
8 changes: 3 additions & 5 deletions test/update/no-uploading.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,23 @@ test('creates comment about creation', () => {

test('creates gulp task files, but not build.js', () => {
assert.file([
'gulp/tasks/browsersync.js',
'gulp/tasks/assets.js',
'gulp/tasks/clean.js',
'gulp/tasks/copy.js',
'gulp/tasks/fonts.js',
'gulp/tasks/html.js',
'gulp/tasks/images.js',
'gulp/tasks/inject.js',
'gulp/tasks/scripts.js',
'gulp/tasks/style.js',
'gulp/tasks/uploading.js'
]);
});

test('gulp/tasks/scripts.js does not contain babel', () => {
test('gulp/tasks/assets.js does not contain babel', () => {
[
'const babel',
'.pipe(babel'
].forEach(field => {
assert.noFileContent('gulp/tasks/scripts.js', field);
assert.noFileContent('gulp/tasks/assets.js', field);
});
});

Expand Down
8 changes: 3 additions & 5 deletions test/update/rsync.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,13 @@ test('creates comment about creation', () => {

test('creates gulp task files, but not build.js', () => {
assert.file([
'gulp/tasks/browsersync.js',
'gulp/tasks/assets.js',
'gulp/tasks/clean.js',
'gulp/tasks/copy.js',
'gulp/tasks/fonts.js',
'gulp/tasks/html.js',
'gulp/tasks/images.js',
'gulp/tasks/inject.js',
'gulp/tasks/scripts.js',
'gulp/tasks/style.js',
'gulp/tasks/uploading.js'
]);
});
Expand All @@ -60,12 +58,12 @@ test('creates credentials file', () => {
assert.noFile('aws-credentials.json');
});

test('gulp/tasks/scripts.js does not contain babel', () => {
test('gulp/tasks/assets.js does not contain babel', () => {
[
'const babel',
'.pipe(babel'
].forEach(field => {
assert.noFileContent('gulp/tasks/scripts.js', field);
assert.noFileContent('gulp/tasks/assets.js', field);
});
});

Expand Down

0 comments on commit 7ba4b49

Please sign in to comment.