Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: prettier.
Browse files Browse the repository at this point in the history
aorinevo committed Mar 30, 2020

Verified

This commit was signed with the committer’s verified signature.
oddgrd Oddbjørn Grødem
1 parent d0c1bca commit a7ff52c
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
@@ -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'
@@ -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');
}

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

});
};

0 comments on commit a7ff52c

Please sign in to comment.