File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,9 @@ export function saveProject(_project) {
7070}
7171
7272function 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 ( {
Original file line number Diff line number Diff 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;" ) ;
You can’t perform that action at this time.
0 commit comments