Skip to content

Commit e50c636

Browse files
committed
rename code to snapshot
1 parent 17a815e commit e50c636

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/selenium-ide/src/neo/IO/filesystem.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ export function saveProject(_project) {
7070
}
7171

7272
function downloadProject(project) {
73-
return exportProject(project).then(code => {
74-
if (code) {
75-
project.code = code;
73+
return exportProject(project).then(snapshot => {
74+
if (snapshot) {
75+
project.snapshot = snapshot;
7676
Object.assign(project, Manager.emitDependencies());
7777
}
7878
return browser.downloads.download({

packages/selenium-side-runner/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function runProject(project) {
120120
dependencies: project.dependencies || {}
121121
}));
122122

123-
return Selianize(project, { silenceErrors: true }).then((code) => {
123+
return Selianize(project, { silenceErrors: true }, project.snapshot).then((code) => {
124124
const tests = code.tests.reduce((tests, test) => {
125125
return tests += test.code;
126126
}, "const tests = {};").concat("module.exports = tests;");

0 commit comments

Comments
 (0)