diff --git a/test/spec/ol/format/wfsformat.test.js b/test/spec/ol/format/wfsformat.test.js index 6fdd6ecdbd..89cf3e4aae 100644 --- a/test/spec/ol/format/wfsformat.test.js +++ b/test/spec/ol/format/wfsformat.test.js @@ -330,10 +330,9 @@ describe('ol.format.WFS', function() { describe('when writing out a Transaction request', function() { - var text; - before(function(done) { - afterLoadText('spec/ol/format/wfs/TransactionUpdateMultiGeoms.xml', - function(xml) { + var text, filename = 'spec/ol/format/wfs/TransactionUpdateMultiGeoms.xml'; + before(function (done) { + afterLoadText(filename, function (xml) { text = xml; done(); }