Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Make SpecRunnerUtils.createTextFile writes blind because overwriting …
Browse files Browse the repository at this point in the history
…existing, unread files is fine.
  • Loading branch information
Ian Wehrman committed Jan 3, 2014
1 parent 68eef10 commit e1a3614
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/spec/SpecRunnerUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,9 +743,12 @@ define(function (require, exports, module) {
*/
function createTextFile(path, text, fileSystem) {
var deferred = new $.Deferred(),
file = fileSystem.getFileForPath(path);
file = fileSystem.getFileForPath(path),
options = {
blind: true // overwriting previous files is OK
};

file.write(text, function (err) {
file.write(text, options, function (err) {
if (!err) {
deferred.resolve(file);
} else {
Expand Down

0 comments on commit e1a3614

Please sign in to comment.