From 4a465009c4adad678f0d0af95dd448a102dbe60d Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Fri, 22 Dec 2017 10:50:46 -0500 Subject: [PATCH] chore(snapshot): fix error with scoped var --- packages/core/scripts/e2e/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/scripts/e2e/index.js b/packages/core/scripts/e2e/index.js index 88c2c2c45b..7fadd92f94 100644 --- a/packages/core/scripts/e2e/index.js +++ b/packages/core/scripts/e2e/index.js @@ -105,7 +105,7 @@ async function run() { const files = await getTestFiles(); files.forEach(f => mocha.addFile(f)); - const snapshot = await mochaLoadFiles(mocha); + snapshot = await mochaLoadFiles(mocha); const failures = await mochaRun(mocha); if (takeScreenshots) { @@ -132,7 +132,7 @@ function mochaLoadFiles(mocha) { mocha.loadFiles(() => { specIndex = 0; - const snapshot = new Snapshot({ + snapshot = new Snapshot({ groupId: 'ionic-core', appId: 'snapshots', testId: generateTestId(),