properly reset writeToDisk if a test sets it to false

This commit is contained in:
Michael Rawlings 2016-07-01 15:17:47 -07:00
parent 176ed13463
commit bb3d06fd37

View File

@ -57,7 +57,7 @@ describe('render', function() {
}
} finally {
if (main.writeToDisk === false) {
require('marko/compiler').defaultOptions.writeToDisk = false;
delete require('marko/compiler').defaultOptions.writeToDisk;
}
if (main.preserveWhitespaceGlobal === true) {