Skip to content

Commit

Permalink
chore: prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
aorinevo committed Mar 30, 2020
1 parent d0c1bca commit a7ff52c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/expected/source.map.amd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions tasks/test-bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const testCases = [
'-N',
'test',
'--map',
'./spec/artifacts/source.map.amd.js'
'./spec/artifacts/source.map.amd.txt'
],
outputLocation: 'stdout',
expectedOutputSpec: './spec/expected/source.map.amd.js'
Expand All @@ -165,10 +165,15 @@ const testCases = [
module.exports = function(grunt) {
grunt.registerTask('test:bin', function() {
testCases.forEach(
({ binInputParameters, outputLocation, expectedOutputSpec, expectedOutput }) => {
({
binInputParameters,
outputLocation,
expectedOutputSpec,
expectedOutput
}) => {
const stdout = executeBinHandlebars(...binInputParameters);
if( !expectedOutput && expectedOutputSpec){

if (!expectedOutput && expectedOutputSpec) {
expectedOutput = fs.readFileSync(expectedOutputSpec, 'utf-8');
}

Expand All @@ -190,7 +195,6 @@ module.exports = function(grunt) {
);
}
);

});
};

Expand Down

0 comments on commit a7ff52c

Please sign in to comment.