chore(snapshot): fix error with scoped var

This commit is contained in:
Brandy Carney
2017-12-22 10:50:46 -05:00
parent c292517523
commit 4a465009c4

View File

@@ -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(),