We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
finally
1 parent c7410ae commit c7d9988Copy full SHA for c7d9988
test/test.js
@@ -238,7 +238,10 @@ describe('Filter', function() {
238
expect(existsSync(results.directory + '/a/README.md'), 'OUTPUT: a/foo.js should NO LONGER be present').to.be.false;
239
240
expect(existsSync(fileForRemoval)).to.be.false;
241
+ return results;
242
+ }).finally(function() {
243
fs.writeFileSync(fileForRemoval, 'Nicest cats in need of homes');
244
+ }).then(function(results) {
245
expect(existsSync(fileForRemoval)).to.be.true;
246
247
return results.builder();
@@ -312,7 +315,7 @@ describe('Filter', function() {
312
315
to.equal('utf8');
313
316
});
314
317
- describe('proccesFile', function() {
318
+ describe('processFile', function() {
319
beforeEach(function() {
320
sinon.spy(fs, 'mkdirSync');
321
0 commit comments