Skip to content

Commit

Permalink
Change forEach to lodash each functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sourrust committed Jun 17, 2015
1 parent 5dbfba1 commit 45a9cc5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/markup/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

var _ = require('lodash');
var bluebird = require('bluebird');
var fs = bluebird.promisifyAll(require('fs'));
var glob = require('glob');
Expand All @@ -12,7 +13,7 @@ function testLanguage(language) {
var filePath = utility.buildPath('markup', language, '*.expect.txt'),
filenames = glob.sync(filePath);

filenames.forEach(function(filename) {
_.each(filenames, function(filename) {
var testName = path.basename(filename, '.expect.txt'),
sourceName = filename.replace(/\.expect/, '');

Expand All @@ -34,5 +35,5 @@ function testLanguage(language) {
describe('markup generation test', function() {
var languages = fs.readdirSync(utility.buildPath('markup'));

languages.forEach(testLanguage);
_.each(languages, testLanguage, this);
});

0 comments on commit 45a9cc5

Please sign in to comment.