From 1df9b32b38be2402888f9e60cd2485367f67a3be Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Mon, 14 Dec 2015 13:58:21 -0600 Subject: [PATCH] chore(): fix snapshot relativePath --- gulpfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 0bad31d6c9..cf0b666b98 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -250,7 +250,7 @@ gulp.task('e2e.build', function() { ]) .pipe(rename(function(file) { var sep = path.sep; - file.dirname = file.dirname.replace(sep + 'test' + sep, sep) + file.dirname = file.dirname.replace(sep + 'test' + sep, sep); })) .pipe(gulp.dest('dist/e2e/')); @@ -269,6 +269,7 @@ gulp.task('e2e.build', function() { return through2.obj(function(file, enc, next) { var self = this; var relativePath = path.dirname(file.path.replace(/^.*?ionic(\/|\\)components(\/|\\)/, '')); + relativePath = relativePath.replace('/test/', '/'); var contents = file.contents.toString(); platforms.forEach(function(platform) { var platformContents = testTemplate({