From 7ba4b49ebdc15e3b9516c38a2fb4115512ea2322 Mon Sep 17 00:00:00 2001 From: Sondre Nilsen Date: Thu, 28 Jul 2016 17:26:58 +0200 Subject: [PATCH] Update tests --- test/gulp.js | 4 +--- test/update.js | 8 +++----- test/update/aws.js | 8 +++----- test/update/babel.js | 8 +++----- test/update/ghpages.js | 8 +++----- test/update/no-uploading.js | 8 +++----- test/update/rsync.js | 8 +++----- 7 files changed, 19 insertions(+), 33 deletions(-) diff --git a/test/gulp.js b/test/gulp.js index fe92529..2ebac66 100644 --- a/test/gulp.js +++ b/test/gulp.js @@ -38,7 +38,7 @@ 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', @@ -46,8 +46,6 @@ test('creates gulp task files', () => { 'gulp/tasks/html.js', 'gulp/tasks/images.js', 'gulp/tasks/inject.js', - 'gulp/tasks/scripts.js', - 'gulp/tasks/style.js', 'gulp/tasks/uploading.js' ]); }); diff --git a/test/update.js b/test/update.js index ca822cb..9079546 100644 --- a/test/update.js +++ b/test/update.js @@ -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' ]); }); @@ -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'); }); diff --git a/test/update/aws.js b/test/update/aws.js index 0efd031..8540fa8 100644 --- a/test/update/aws.js +++ b/test/update/aws.js @@ -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); }); }); diff --git a/test/update/babel.js b/test/update/babel.js index 5000489..52ce64d 100644 --- a/test/update/babel.js +++ b/test/update/babel.js @@ -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); }); }); diff --git a/test/update/ghpages.js b/test/update/ghpages.js index 2092264..d75f02b 100644 --- a/test/update/ghpages.js +++ b/test/update/ghpages.js @@ -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); }); }); diff --git a/test/update/no-uploading.js b/test/update/no-uploading.js index 989ab0f..f9ddf7a 100644 --- a/test/update/no-uploading.js +++ b/test/update/no-uploading.js @@ -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); }); }); diff --git a/test/update/rsync.js b/test/update/rsync.js index 2c44738..43a781e 100644 --- a/test/update/rsync.js +++ b/test/update/rsync.js @@ -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' ]); }); @@ -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); }); });