chore(): fix snapshot relativePath

This commit is contained in:
Adam Bradley
2015-12-14 13:58:21 -06:00
parent 3a3d5ef9f2
commit 1df9b32b38

View File

@ -250,7 +250,7 @@ gulp.task('e2e.build', function() {
]) ])
.pipe(rename(function(file) { .pipe(rename(function(file) {
var sep = path.sep; 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/')); .pipe(gulp.dest('dist/e2e/'));
@ -269,6 +269,7 @@ gulp.task('e2e.build', function() {
return through2.obj(function(file, enc, next) { return through2.obj(function(file, enc, next) {
var self = this; var self = this;
var relativePath = path.dirname(file.path.replace(/^.*?ionic(\/|\\)components(\/|\\)/, '')); var relativePath = path.dirname(file.path.replace(/^.*?ionic(\/|\\)components(\/|\\)/, ''));
relativePath = relativePath.replace('/test/', '/');
var contents = file.contents.toString(); var contents = file.contents.toString();
platforms.forEach(function(platform) { platforms.forEach(function(platform) {
var platformContents = testTemplate({ var platformContents = testTemplate({